X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Fi386%2Fconfig.mk;h=3fb97c1989bd62ae2040c7ace274a78f75b690a0;hb=5eb522a68c3573419f42e321dccf4b01b584dbe8;hp=4b990e04ef2467d564b27caa81b25816d6047fe0;hpb=83653121d7382fccfe329cb732f77f116341ef1d;p=u-boot diff --git a/arch/i386/config.mk b/arch/i386/config.mk index 4b990e04ef..3fb97c1989 100644 --- a/arch/i386/config.mk +++ b/arch/i386/config.mk @@ -25,4 +25,16 @@ CROSS_COMPILE ?= i386-linux- STANDALONE_LOAD_ADDR = 0x40000 +PLATFORM_CPPFLAGS += -fno-strict-aliasing +PLATFORM_CPPFLAGS += -Wstrict-prototypes +PLATFORM_CPPFLAGS += -mregparm=3 +PLATFORM_CPPFLAGS += -fomit-frame-pointer +PLATFORM_CPPFLAGS += $(call cc-option, -ffreestanding) +PLATFORM_CPPFLAGS += $(call cc-option, -fno-toplevel-reorder, $(call cc-option, -fno-unit-at-a-time)) +PLATFORM_CPPFLAGS += $(call cc-option, -fno-stack-protector) +PLATFORM_CPPFLAGS += $(call cc-option, -mpreferred-stack-boundary=2) PLATFORM_CPPFLAGS += -DCONFIG_I386 -D__I386__ + +LDFLAGS += --cref +LDFLAGS_u-boot += --gc-sections +PLATFORM_RELFLAGS += -ffunction-sections