2019-06-20 15:04:33 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_compile_options(-mcpu=${GCC_M_CPU} -mno-sdata)
|
|
|
|
|
|
|
|
if(CONFIG_SOC_EMSDP_EM4)
|
|
|
|
zephyr_compile_options(-mmpy-option=3 -mno-div-rem)
|
|
|
|
elseif(CONFIG_SOC_EMSDP_EM6)
|
|
|
|
zephyr_compile_options(-mmpy-option=3 -mno-div-rem)
|
|
|
|
elseif(CONFIG_SOC_EMSDP_EM5D)
|
|
|
|
zephyr_compile_options(-mmpy-option=6)
|
|
|
|
elseif(CONFIG_SOC_EMSDP_EM7D)
|
|
|
|
zephyr_compile_options(-mmpy-option=6)
|
|
|
|
elseif(CONFIG_SOC_EMSDP_EM7D_ESP)
|
|
|
|
zephyr_compile_options(-mmpy-option=6)
|
|
|
|
elseif(CONFIG_SOC_EMSDP_EM9D)
|
|
|
|
zephyr_compile_options(-mmpy-option=6)
|
2020-04-23 16:27:24 +08:00
|
|
|
zephyr_compile_options_ifdef(CONFIG_FPU -mfpu=fpus_all)
|
2019-06-20 15:04:33 +08:00
|
|
|
elseif(CONFIG_SOC_EMSDP_EM11D)
|
|
|
|
zephyr_compile_options(-mmpy-option=6)
|
2020-04-23 16:27:24 +08:00
|
|
|
zephyr_compile_options_ifdef(CONFIG_FPU -mfpu=fpuda_all)
|
2019-06-20 15:04:33 +08:00
|
|
|
endif()
|