2015-02-18 01:16:47 +08:00
|
|
|
LTO_FLAG-y = $(call cc-option,-flto,)
|
2015-05-06 23:30:41 +08:00
|
|
|
SECTION_GC_FLAG = $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
2015-02-18 01:16:47 +08:00
|
|
|
arm_FLAGS = $(call cc-option,-mthumb,)
|
2015-06-11 04:16:03 +08:00
|
|
|
ifeq ($(CONFIG_CPU_CORTEX_M3),y)
|
2015-06-02 02:47:07 +08:00
|
|
|
arm_FLAGS += -mcpu=cortex-m3 -march=armv7-m
|
2015-04-28 02:04:05 +08:00
|
|
|
endif
|
2015-06-11 04:27:05 +08:00
|
|
|
ifeq ($(CONFIG_CPU_CORTEX_M4),y)
|
2015-06-02 02:47:07 +08:00
|
|
|
arm_FLAGS += -mcpu=cortex-m4 -march=armv7e-m
|
2015-04-28 02:04:05 +08:00
|
|
|
endif
|
2015-02-18 01:16:47 +08:00
|
|
|
arm_FLAGS += $(SECTION_GC_FLAG)
|
|
|
|
arm_FLAGS += $(LTO_FLAG-$(CONFIG_LTO))
|
2015-05-01 03:14:29 +08:00
|
|
|
|
|
|
|
QEMU_CPU_TYPE_arm = cortex-m3
|
|
|
|
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
|
2015-05-29 19:57:26 +08:00
|
|
|
-machine lm3s6965evb -nographic -serial mon:stdio
|
2015-05-01 03:14:29 +08:00
|
|
|
QEMU_arm = qemu-system-arm
|
|
|
|
|
|
|
|
export QEMU_FLAGS_arm QEMU_arm
|