mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-18 01:35:22 +00:00
This commit removes from the Kconfig system the SECTION_GARBAGE_COLLECTION kconfig symbols and sets the SECTION_GC_FLAG flag permanently on the compilation options. Change-Id: Iec070613d85afa697c62d6cbc54cc146cffcab27 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
21 lines
608 B
Makefile
21 lines
608 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
|
|
QEMU_arm = qemu-system-arm
|
|
|
|
export QEMU_FLAGS_arm QEMU_arm
|