X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Fi386%2Fconfig.mk;h=3fb97c1989bd62ae2040c7ace274a78f75b690a0;hb=5eb522a68c3573419f42e321dccf4b01b584dbe8;hp=0e80a1ae5847c9a11cf7021e294be6403297492f;hpb=d664adb6bb7243fc9be1cb242a18a76901bc5c3a;p=u-boot diff --git a/arch/i386/config.mk b/arch/i386/config.mk index 0e80a1ae58..3fb97c1989 100644 --- a/arch/i386/config.mk +++ b/arch/i386/config.mk @@ -25,7 +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 --gc-sections +LDFLAGS += --cref +LDFLAGS_u-boot += --gc-sections PLATFORM_RELFLAGS += -ffunction-sections