2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-05-10 14:28:27 +08:00
|
|
|
set(ARCH_FOR_cortex-m0 armv6s-m )
|
|
|
|
set(ARCH_FOR_cortex-m0plus armv6s-m )
|
2018-06-29 17:41:28 +08:00
|
|
|
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+dsp)
|
|
|
|
set(ARCH_FOR_cortex-m33+nodsp armv8-m.main )
|
2017-10-27 21:43:34 +08:00
|
|
|
|
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}
|
|
|
|
)
|
|
|
|
|
2018-11-26 20:48:34 +08:00
|
|
|
zephyr_ld_options(
|
|
|
|
-mabi=aapcs
|
|
|
|
${ARCH_FLAG}
|
|
|
|
)
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
add_subdirectory(core)
|