zephyr/scripts/Makefile.arm.preparch
Andrei Emeltchenko f9360e8069 make: Fix qemu flags for ARM architecture
Fixes missing qemu flag and when adding Bluetooth -serial switch it
became the first UART.

Change-Id: I85f4bf236383a288f2935f6455141fa7b18c3ac8
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2016-02-05 20:14:12 -05:00

21 lines
626 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_CORTEXM3),y)
arm_FLAGS += -mcpu=cortex-m3
endif
ifeq ($(CONFIG_CPU_CORTEXM4),y)
arm_FLAGS += -mcpu=cortex-m4
endif
arm_FLAGS += -DVXMICRO_ARCH_arm
arm_FLAGS += -DVXMICRO_ARCH=arm
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