2017-10-27 21:43:34 +08:00
|
|
|
zephyr_cc_option_ifdef(CONFIG_LTO -flto)
|
|
|
|
|
|
|
|
set(ARCH_FOR_cortex-m0 armv6-m )
|
|
|
|
set(ARCH_FOR_cortex-m0plus armv6-m )
|
|
|
|
set(ARCH_FOR_cortex-m3 armv7-m )
|
|
|
|
set(ARCH_FOR_cortex-m4 armv7e-m )
|
|
|
|
set(ARCH_FOR_cortex-m23 armv8-m.base)
|
|
|
|
set(ARCH_FOR_cortex-m33 armv8-m.main)
|
|
|
|
|
2017-12-22 12:43:48 +08:00
|
|
|
set_property(GLOBAL PROPERTY E_KERNEL_ENTRY -e${CONFIG_KERNEL_ENTRY})
|
|
|
|
|
2018-04-05 01:22:23 +08:00
|
|
|
if(ARCH_FOR_${GCC_M_CPU})
|
2017-10-27 21:43:34 +08:00
|
|
|
set(ARCH_FLAG -march=${ARCH_FOR_${GCC_M_CPU}})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
zephyr_compile_options(
|
|
|
|
-mabi=aapcs
|
|
|
|
${ARCH_FLAG}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(soc)
|
|
|
|
add_subdirectory(core)
|