blob: 5e7e802293bb22cee437fdbf2bc9b472111933af [file] [log] [blame]
# -mcpu=em4_dmips is added to KBUILD_CFLAGS to make cc-option check the options correctly
KBUILD_CFLAGS += -mcpu=em4_dmips
soc-cflags += $(call cc-option,-mcpu=em4_dmips -mno-sdata) \
$(call cc-option,-mdiv-rem -mswap -mnorm) \
$(call cc-option,-mmpy-option=6 -mbarrel-shifter) \
$(call cc-option,--param l1-cache-size=16384) \
$(call cc-option,--param l1-cache-line-size=32)
ifeq ($(CONFIG_CODE_DENSITY), y)
soc-cflags += $(call cc-option,-mcode-density)
endif
ifeq ($(CONFIG_BOARD_EM_STARTERKIT_R23), y)
$(error em7d from em starterkit 2.3 is not supported)
endif