File tree 7 files changed +14
-1
lines changed
7 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -519,11 +519,13 @@ add_custom_target(
519
519
offsets_h
520
520
)
521
521
522
+ get_property (E_KERNEL_ENTRY GLOBAL PROPERTY E_KERNEL_ENTRY)
523
+
522
524
set (zephyr_lnk
523
525
${LINKERFLAGPREFIX} ,-Map=${PROJECT_BINARY_DIR} /${KERNEL_MAP_NAME}
524
526
-u_OffsetAbsSyms
525
527
-u_ConfigAbsSyms
526
- -e ${CONFIG_KERNEL_ENTRY }
528
+ ${E_KERNEL_ENTRY }
527
529
${LINKERFLAGPREFIX} ,--start -group
528
530
${LINKERFLAGPREFIX} ,--whole-archive
529
531
${ZEPHYR_LIBS_PROPERTY}
Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ zephyr_cc_option(-fno-delete-null-pointer-checks)
10
10
11
11
zephyr_cc_option_ifdef (CONFIG_LTO -flto)
12
12
13
+ set_property (GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY} )
14
+
13
15
add_subdirectory (soc/${SOC_PATH} )
14
16
add_subdirectory (core)
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ set(ARCH_FOR_cortex-m4 armv7e-m )
7
7
set (ARCH_FOR_cortex-m23 armv8-m.base)
8
8
set (ARCH_FOR_cortex-m33 armv8-m.main)
9
9
10
+ set_property (GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY} )
11
+
10
12
if (${ARCH_FOR_${GCC_M_CPU} })
11
13
set (ARCH_FLAG -march=${ARCH_FOR_${GCC_M_CPU} })
12
14
endif ()
Original file line number Diff line number Diff line change 32
32
zephyr_cc_option(-mno-hw-div)
33
33
endif ()
34
34
35
+ set_property (GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY} )
35
36
36
37
add_subdirectory (soc/${SOC_PATH} )
37
38
add_subdirectory (core)
Original file line number Diff line number Diff line change 1
1
add_subdirectory (soc)
2
2
add_subdirectory (core)
3
3
4
+ set_property (GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY} )
5
+
4
6
set_property (GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-littleriscv)
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ endif()
23
23
zephyr_cc_option_ifdef (CONFIG_LTO -flto)
24
24
zephyr_cc_option_ifndef(CONFIG_SSE_FP_MATH -mno-sse)
25
25
26
+ set_property (GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY} )
27
+
26
28
if (CMAKE_VERBOSE_MAKEFILE )
27
29
set (GENIDT_EXTRA_ARGS --verbose)
28
30
else ()
Original file line number Diff line number Diff line change 7
7
add_subdirectory (soc/${SOC_PATH} )
8
8
endif ()
9
9
10
+ set_property (GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY} )
11
+
10
12
add_subdirectory (core)
You can’t perform that action at this time.
0 commit comments