9
0
Fork 0

[kbuild] move -Os flag from architecture Makefiles to toplevel

Makefile
This commit is contained in:
Sascha Hauer 2008-06-03 12:26:51 +02:00
parent 878f38de8f
commit 7681d868ba
6 changed files with 5 additions and 6 deletions

View File

@ -308,7 +308,7 @@ LINUXINCLUDE := -Iinclude \
CPPFLAGS := -D__KERNEL__ -D__U_BOOT__ $(LINUXINCLUDE)
CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common
-fno-strict-aliasing -fno-common -Os
AFLAGS := -D__ASSEMBLY__
# Read KERNELRELEASE from include/config/kernel.release (if it exists)

View File

@ -20,7 +20,7 @@ cpu-$(CONFIG_ARM926EJS) := arm926ejs
TEXT_BASE = $(CONFIG_TEXT_BASE)
CPPFLAGS += -mabi=apcs-gnu -DTEXT_BASE=$(TEXT_BASE) -P
CFLAGS += -msoft-float -Os
CFLAGS += -msoft-float
# Add cleanup flags
CPPFLAGS += -fdata-sections -ffunction-sections

View File

@ -9,7 +9,7 @@ cpu-$(CONFIG_BF561) := bf561
TEXT_BASE = $(CONFIG_TEXT_BASE)
CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -P
CFLAGS += -Os -D__blackfin__
CFLAGS += -D__blackfin__
# -Ttext $(TEXT_BASE)
KALLSYMS += --symbol-prefix=_

View File

@ -42,7 +42,7 @@ CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -P
AFLAGS += -gdwarf-2 -save-temps
# FIXME - remove overide
CFLAGS += -msoft-float -mcfv4e -gdwarf-2 -feliminate-unused-debug-types \
-fmerge-all-constants -Os
-fmerge-all-constants
# Incompatible code in U-Boot for -std=c99
LDFLAGS_uboot :=-L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
# --verbose --stats

View File

@ -15,7 +15,6 @@ cpu-$(CONFIG_ARCH_MPC5200) := mpc5xxx
TEXT_BASE = $(CONFIG_TEXT_BASE)
CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -P
CFLAGS += -Os
ifeq ($(incdir-y),)
incdir-y := $(machine-y)

View File

@ -11,7 +11,7 @@ lds-y := arch/sandbox/lib/u-boot.lds
TEXT_BASE = $(CONFIG_TEXT_BASE)
CPPFLAGS += -P
CFLAGS += -Os -Dmalloc=u_boot_malloc \
CFLAGS += -Dmalloc=u_boot_malloc \
-Dfree=u_boot_free -Drealloc=u_boot_realloc \
-Dread=u_boot_read -Dwrite=u_boot_write \
-Dopen=u_boot_open -Dclose=u_boot_close \