Changeset 4f14436 in freewrt for target/linux
- Timestamp:
- Jul 5, 2006, 11:01:51 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 324cbe7
- Parents:
- 8d193bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
target/linux/generic-2.4/patches/050-build_flags.patch
r8d193bb r4f14436 1 diff -ur linux-2.4.32/arch/mips/Makefile linux-2.4.32-openwrt/arch/mips/Makefile 2 --- linux-2.4.32/arch/mips/Makefile 2005-12-15 13:53:59.000000000 +0100 3 +++ linux-2.4.32-openwrt/arch/mips/Makefile 2005-12-15 14:02:33.000000000 +0100 4 @@ -44,10 +44,10 @@ 1 diff -pruN linux-2.4.32.orig/Makefile linux-2.4.32/Makefile 2 --- linux-2.4.32.orig/Makefile Wed Nov 16 19:12:32 2005 3 +++ linux-2.4.32/Makefile Wed Jul 5 20:59:26 2006 4 @@ -11,13 +11,14 @@ KERNELPATH=kernel-$(shell echo $(KERNELR 5 CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ 6 else if [ -x /bin/bash ]; then echo /bin/bash; \ 7 else echo sh; fi ; fi) 8 -TOPDIR := $(shell /bin/pwd) 9 +override TOPDIR := $(shell /bin/pwd) 10 +MAKE := $(MAKE) TOPDIR=$(TOPDIR) 11 12 HPATH = $(TOPDIR)/include 13 FINDHPATH = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net $(HPATH)/math-emu 14 15 HOSTCC = gcc 16 -HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer 17 +HOSTCFLAGS = -Wall -Wstrict-prototypes -Os -fomit-frame-pointer 18 19 CROSS_COMPILE = 20 21 @@ -88,10 +89,9 @@ export MODLIB 22 # 23 # standard CFLAGS 24 # 25 - 26 CPPFLAGS := -D__KERNEL__ -I$(HPATH) 27 28 -CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \ 29 +CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os \ 30 -fno-strict-aliasing -fno-common 31 ifndef CONFIG_FRAME_POINTER 32 CFLAGS += -fomit-frame-pointer 33 @@ -106,6 +106,8 @@ AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS) 34 # 35 36 export ROOT_DEV = CURRENT 37 + 38 +CFLAGS += $(call check_gcc, -funit-at-a-time,) 39 40 # 41 # If you want to preset the SVGA mode, uncomment the next line and 42 diff -pruN linux-2.4.32.orig/arch/mips/Makefile linux-2.4.32/arch/mips/Makefile 43 --- linux-2.4.32.orig/arch/mips/Makefile Wed Jan 19 14:09:04 2005 44 +++ linux-2.4.32/arch/mips/Makefile Wed Jul 5 20:59:13 2006 45 @@ -46,10 +46,10 @@ check_gcc = $(shell if $(CC) $(1) -S -o 5 46 GCCFLAGS := -I $(TOPDIR)/include/asm/gcc 6 47 GCCFLAGS += -G 0 -mno-abicalls -fno-pic -pipe … … 16 57 ifdef CONFIG_SB1XXX_CORELIS 17 58 GCCFLAGS += -mno-sched-prolog -fno-omit-frame-pointer 18 @@ - 69,13 +69,13 @@59 @@ -71,13 +71,13 @@ endif 19 60 set_gccflags = $(shell \ 20 61 while :; do \ … … 32 73 -xc /dev/null > /dev/null 2>&1 && \ 33 74 break 2; \ 34 @@ -9 0,7 +90,7 @@75 @@ -92,7 +92,7 @@ else \ 35 76 fi; \ 36 77 gas_abi=-Wa,-32; gas_cpu=$$cpu; gas_isa=-Wa,$$isa; \ … … 41 82 -o /dev/null -xassembler /dev/null > /dev/null 2>&1 && \ 42 83 break 2; \ 43 @@ -17 2,6 +172,7 @@84 @@ -174,6 +174,7 @@ endif 44 85 endif 45 86 … … 49 90 50 91 LD += -m $(ld-emul) 51 diff -ur linux-2.4.32/Makefile linux-2.4.32-openwrt/Makefile52 --- linux-2.4.32/Makefile 2005-12-15 13:53:59.000000000 +010053 +++ linux-2.4.32-openwrt/Makefile 2005-12-15 13:59:30.000000000 +010054 @@ -17,7 +17,7 @@55 FINDHPATH = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net $(HPATH)/math-emu56 57 HOSTCC = gcc58 -HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer59 +HOSTCFLAGS = -Wall -Wstrict-prototypes -Os -fomit-frame-pointer60 61 CROSS_COMPILE =62 63 @@ -88,10 +88,9 @@64 #65 # standard CFLAGS66 #67 -68 CPPFLAGS := -D__KERNEL__ -I$(HPATH)69 70 -CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \71 +CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os \72 -fno-strict-aliasing -fno-common73 CFLAGS += -fno-builtin-sprintf74 ifndef CONFIG_FRAME_POINTER75 @@ -104,6 +103,8 @@76 # disable pointer signedness warnings in gcc 4.077 CFLAGS += $(call check_gcc,-Wno-pointer-sign,)78 79 +CFLAGS += $(call check_gcc, -funit-at-a-time,)80 +81 #82 # ROOT_DEV specifies the default root-device when making the image.83 # This can be either FLOPPY, CURRENT, /dev/xxxx or empty, in which case
Note:
See TracChangeset
for help on using the changeset viewer.
