22 lines
747 B
CMake
22 lines
747 B
CMake
|
# 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)
|
||
|
zephyr_compile_options_ifdef(CONFIG_FLOAT -mfpu=fpus_all)
|
||
|
elseif(CONFIG_SOC_EMSDP_EM11D)
|
||
|
zephyr_compile_options(-mmpy-option=6)
|
||
|
zephyr_compile_options_ifdef(CONFIG_FLOAT -mfpu=fpuda_all)
|
||
|
endif()
|
||
|
|