Revert "Move compiler optimization to the SoC"
This reverts commit 778d5b11c5327be4b40c7745e9beaecfd6327e13. This patch has been identified as breaking the build when trying to manually build non-x86 applications. Change-Id: I1857745049dfef7193de58737108314b7aae01c5 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
009a19f164
commit
1f63ec7264
11 changed files with 17 additions and 43 deletions
|
@ -1,6 +1,7 @@
|
||||||
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
cflags-y += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
||||||
cflags-$(CONFIG_LTO) = $(call cc-option,-flto,)
|
arch-$(CONFIG_LTO) = $(call cc-option,-flto,)
|
||||||
|
arch-$(CONFIG_CPU_ARCEM4) = $(call cc-option,-mARCv2EM) \
|
||||||
|
$(call cc-option,-mav2em,) $(call cc-option,-mno-sdata)
|
||||||
|
|
||||||
include $(srctree)/arch/$(ARCH)/soc/$(SOC_NAME)/Makefile
|
KBUILD_CFLAGS += $(arch-y) $(cflags-y)
|
||||||
|
KBUILD_AFLAGS += $(arch-y)
|
||||||
KBUILD_CFLAGS += $(cflags-y)
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-mARCv2EM) \
|
|
||||||
$(call cc-option,-mav2em,) $(call cc-option,-mno-sdata)
|
|
||||||
|
|
||||||
KBUILD_AFLAGS += $(KBUILD_CFLAGS)
|
|
|
@ -1,10 +1,14 @@
|
||||||
KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,) $(call cc-option,-fdata-sections,)
|
||||||
|
|
||||||
include $(srctree)/arch/$(ARCH)/soc/$(SOC_NAME)/Makefile
|
arch-$(CONFIG_CPU_CORTEX_M3) += $(call cc-option,-mthumb -mcpu=cortex-m3) \
|
||||||
|
$(call cc-option,-mthumb -march=armv7-m)
|
||||||
|
arch-$(CONFIG_CPU_CORTEX_M4) += $(call cc-option,-mthumb -mcpu=cortex-m4) \
|
||||||
|
$(call cc-option,-mthumb -march=armv7e-m)
|
||||||
|
|
||||||
cflags-$(CONFIG_LTO) += $(call cc-option,-flto,)
|
cflags-$(CONFIG_LTO) = $(call cc-option,-flto,)
|
||||||
|
|
||||||
KBUILD_CFLAGS += $(cflags-y)
|
KBUILD_CFLAGS += $(cflags-y) $(arch-y)
|
||||||
|
KBUILD_AFLAGS += $(arch-y)
|
||||||
|
|
||||||
QEMU_CPU_TYPE_arm = cortex-m3
|
QEMU_CPU_TYPE_arm = cortex-m3
|
||||||
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
|
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-mthumb -mcpu=cortex-m4) \
|
|
||||||
$(call cc-option,-mthumb -march=armv7e-m)
|
|
||||||
|
|
||||||
KBUILD_AFLAGS += $(KBUILD_CFLAGS)
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-mthumb -mcpu=cortex-m3) \
|
|
||||||
$(call cc-option,-mthumb -march=armv7-m)
|
|
||||||
|
|
||||||
KBUILD_AFLAGS += $(KBUILD_CFLAGS)
|
|
|
@ -20,9 +20,12 @@ ifneq ($(CONFIG_SSE_FP_MATH),y)
|
||||||
cflags-y += -mno-sse
|
cflags-y += -mno-sse
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(srctree)/arch/$(ARCH)/soc/$(SOC_NAME)/Makefile
|
arch-$(CONFIG_CPU_ATOM) += $(call cc-option,-march=atom) \
|
||||||
|
$(call cc-option,-mtune=atom,$(call cc-option,-mtune=generic))
|
||||||
|
arch-$(CONFIG_CPU_MINUTEIA) += $(call cc-option,-march=pentium)
|
||||||
|
|
||||||
KBUILD_CFLAGS += $(cflags-y)
|
KBUILD_CFLAGS += $(cflags-y) $(arch-y)
|
||||||
|
KBUILD_AFLAGS += $(arch-y)
|
||||||
|
|
||||||
QEMU_BIOS ?= /usr/share/qemu
|
QEMU_BIOS ?= /usr/share/qemu
|
||||||
QEMU_CPU_TYPE_x86 = qemu32
|
QEMU_CPU_TYPE_x86 = qemu32
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
KBUILD_CFLAGS += -march=atom $(call cc-option,-mtune=atom,$(call cc-option,-mtune=generic))
|
|
||||||
KBUILD_AFLAGS += $(KBUILD_CFLAGS)
|
|
|
@ -1,3 +0,0 @@
|
||||||
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-march=pentium)
|
|
||||||
KBUILD_AFLAGS += $(KBUILD_CFLAGS)
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
KBUILD_CFLAGS += -march=lakemont -mtune=lakemont -miamcu -msoft-float
|
|
||||||
KBUILD_AFLAGS += $(KBUILD_CFLAGS)
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-march=lakemont -mtune=lakemont -miamcu -msoft-float, -march=pentium)
|
|
||||||
KBUILD_AFLAGS += $(KBUILD_CFLAGS)
|
|
|
@ -1,3 +0,0 @@
|
||||||
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-march=pentium)
|
|
||||||
KBUILD_AFLAGS += $(KBUILD_CFLAGS)
|
|
Loading…
Add table
Add a link
Reference in a new issue