arch: architecture defines kernel entry
Make defining the kernel entry architecture specific and move it to the architecture domain. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
2bbe6af07c
commit
5146dbbc58
7 changed files with 14 additions and 1 deletions
|
@ -519,11 +519,13 @@ add_custom_target(
|
|||
offsets_h
|
||||
)
|
||||
|
||||
get_property(E_KERNEL_ENTRY GLOBAL PROPERTY E_KERNEL_ENTRY)
|
||||
|
||||
set(zephyr_lnk
|
||||
${LINKERFLAGPREFIX},-Map=${PROJECT_BINARY_DIR}/${KERNEL_MAP_NAME}
|
||||
-u_OffsetAbsSyms
|
||||
-u_ConfigAbsSyms
|
||||
-e${CONFIG_KERNEL_ENTRY}
|
||||
${E_KERNEL_ENTRY}
|
||||
${LINKERFLAGPREFIX},--start-group
|
||||
${LINKERFLAGPREFIX},--whole-archive
|
||||
${ZEPHYR_LIBS_PROPERTY}
|
||||
|
|
|
@ -10,5 +10,7 @@ zephyr_cc_option(-fno-delete-null-pointer-checks)
|
|||
|
||||
zephyr_cc_option_ifdef (CONFIG_LTO -flto)
|
||||
|
||||
set_property(GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY})
|
||||
|
||||
add_subdirectory(soc/${SOC_PATH})
|
||||
add_subdirectory(core)
|
||||
|
|
|
@ -7,6 +7,8 @@ set(ARCH_FOR_cortex-m4 armv7e-m )
|
|||
set(ARCH_FOR_cortex-m23 armv8-m.base)
|
||||
set(ARCH_FOR_cortex-m33 armv8-m.main)
|
||||
|
||||
set_property(GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY})
|
||||
|
||||
if(${ARCH_FOR_${GCC_M_CPU}})
|
||||
set(ARCH_FLAG -march=${ARCH_FOR_${GCC_M_CPU}})
|
||||
endif()
|
||||
|
|
|
@ -32,6 +32,7 @@ else()
|
|||
zephyr_cc_option(-mno-hw-div)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY})
|
||||
|
||||
add_subdirectory(soc/${SOC_PATH})
|
||||
add_subdirectory(core)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
add_subdirectory(soc)
|
||||
add_subdirectory(core)
|
||||
|
||||
set_property(GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY})
|
||||
|
||||
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-littleriscv)
|
||||
|
|
|
@ -23,6 +23,8 @@ endif()
|
|||
zephyr_cc_option_ifdef (CONFIG_LTO -flto)
|
||||
zephyr_cc_option_ifndef(CONFIG_SSE_FP_MATH -mno-sse)
|
||||
|
||||
set_property(GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY})
|
||||
|
||||
if(CMAKE_VERBOSE_MAKEFILE)
|
||||
set(GENIDT_EXTRA_ARGS --verbose)
|
||||
else()
|
||||
|
|
|
@ -7,4 +7,6 @@ else()
|
|||
add_subdirectory(soc/${SOC_PATH})
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY})
|
||||
|
||||
add_subdirectory(core)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue