2015-08-23 11:22:40 -04:00
|
|
|
KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
|
|
|
|
2016-04-03 09:37:43 -04:00
|
|
|
include $(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/Makefile
|
2015-08-23 11:22:40 -04:00
|
|
|
|
2016-01-13 07:49:42 -05:00
|
|
|
cflags-$(CONFIG_LTO) += $(call cc-option,-flto,)
|
2015-08-23 11:22:40 -04:00
|
|
|
|
2016-01-13 07:49:42 -05:00
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
|
|
|
KBUILD_CXXFLAGS += $(cflags-y)
|
2015-08-23 11:22:40 -04:00
|
|
|
|
2016-05-26 10:32:04 -05:00
|
|
|
soc-cxxflags ?= $(soc-cflags)
|
|
|
|
soc-aflags ?= $(soc-cflags)
|
|
|
|
KBUILD_CFLAGS += $(soc-cflags)
|
|
|
|
KBUILD_CXXFLAGS += $(soc-cxxflags)
|
|
|
|
KBUILD_AFLAGS += $(soc-aflags)
|
|
|
|
|
2015-08-23 11:22:40 -04:00
|
|
|
QEMU_CPU_TYPE_arm = cortex-m3
|
|
|
|
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
|
2016-05-05 10:55:39 -04:00
|
|
|
-machine lm3s6965evb -nographic -vga none
|
2015-08-23 11:22:40 -04:00
|
|
|
QEMU_arm = qemu-system-arm
|
|
|
|
|
|
|
|
export QEMU_FLAGS_arm QEMU_arm
|