zephyr/soc/synopsys/hsdk4xd/CMakeLists.txt

21 lines
699 B
CMake

# SPDX-License-Identifier: Apache-2.0
if(COMPILER STREQUAL gcc)
# GNU compiler options
zephyr_compile_options(-mno-sdata)
zephyr_compile_options_ifdef(CONFIG_FPU -mfpu=fpud_all)
else()
# MWDT compiler options
zephyr_compile_options(-arcv2hs -core4 -Xdual_issue -Xcode_density -Hrgf_banked_regs=32 -HL
-Xatomic -Xll64 -Xunaligned -Xdiv_rem=radix4 -Xswap -Xbitscan -Xmpy_option=qmpyh -Xshift_assist
-Xbarrel_shifter -Xtimer0 -Xtimer1 -Xrtc -Hld_cycles=2)
zephyr_compile_options_ifdef(CONFIG_FPU -Xfpu_mac -Xfpud_div)
zephyr_ld_options(-Hlib=hs48_slc_full)
endif()
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")