2015-02-18 01:16:47 +08:00
|
|
|
LTO_FLAG-y = $(call cc-option,-flto,)
|
|
|
|
SECTION_GC_FLAG-y = $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
|
|
|
SECTION_GC_FLAG = $(SECTION_GC_FLAG-$(CONFIG_SECTION_GARBAGE_COLLECTION))
|
|
|
|
arm_FLAGS = $(call cc-option,-mthumb,)
|
2015-04-28 02:04:05 +08:00
|
|
|
ifeq ($(CONFIG_CPU_CORTEXM3),y)
|
|
|
|
arm_FLAGS += -mcpu=cortex-m3
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CPU_CORTEXM4),y)
|
|
|
|
arm_FLAGS += -mcpu=cortex-m4
|
|
|
|
endif
|
2015-02-18 01:16:47 +08:00
|
|
|
arm_FLAGS += -DVXMICRO_ARCH_arm
|
|
|
|
arm_FLAGS += -DVXMICRO_ARCH=arm
|
|
|
|
arm_FLAGS += $(SECTION_GC_FLAG)
|
|
|
|
arm_FLAGS += $(LTO_FLAG-$(CONFIG_LTO))
|