zephyr/scripts/Makefile.arm.preparch
Peter Mitsis 3e6c31207b Rename option CPU_CORTEXM4 to CPU_CORTEX_M4
Makes name more consistent with CPU_CORTEX_M3_M4 option.

Change-Id: I6f0a14322b7774df54a3459f91cd3acf07819b04
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
2016-02-05 20:14:25 -05:00

19 lines
595 B
Makefile

LTO_FLAG-y = $(call cc-option,-flto,)
SECTION_GC_FLAG = $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
arm_FLAGS = $(call cc-option,-mthumb,)
ifeq ($(CONFIG_CPU_CORTEX_M3),y)
arm_FLAGS += -mcpu=cortex-m3 -march=armv7-m
endif
ifeq ($(CONFIG_CPU_CORTEX_M4),y)
arm_FLAGS += -mcpu=cortex-m4 -march=armv7e-m
endif
arm_FLAGS += $(SECTION_GC_FLAG)
arm_FLAGS += $(LTO_FLAG-$(CONFIG_LTO))
QEMU_CPU_TYPE_arm = cortex-m3
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
-machine lm3s6965evb -nographic -serial mon:stdio
QEMU_arm = qemu-system-arm
export QEMU_FLAGS_arm QEMU_arm