Changeset 4f14436 in freewrt for target/linux


Ignore:
Timestamp:
Jul 5, 2006, 11:01:51 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
324cbe7
Parents:
8d193bb
Message:

Fix the issue of overridden $(TOPDIR) within buildroot.
Patch from Markus Wigge; ok to commit wbx@

I chose to integrate it here and regenerate these patches
while at it.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@170 afb5a338-a214-0410-bd46-81f09a774fd1

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 @@
     1diff -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
     42diff -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
    546 GCCFLAGS       := -I $(TOPDIR)/include/asm/gcc
    647 GCCFLAGS       += -G 0 -mno-abicalls -fno-pic -pipe
     
    1657 ifdef CONFIG_SB1XXX_CORELIS
    1758 GCCFLAGS       += -mno-sched-prolog -fno-omit-frame-pointer
    18 @@ -69,13 +69,13 @@
     59@@ -71,13 +71,13 @@ endif
    1960 set_gccflags = $(shell \
    2061 while :; do \
     
    3273                        -xc /dev/null > /dev/null 2>&1 && \
    3374                        break 2; \
    34 @@ -90,7 +90,7 @@
     75@@ -92,7 +92,7 @@ else \
    3576 fi; \
    3677 gas_abi=-Wa,-32; gas_cpu=$$cpu; gas_isa=-Wa,$$isa; \
     
    4182                        -o /dev/null -xassembler /dev/null > /dev/null 2>&1 && \
    4283                        break 2; \
    43 @@ -172,6 +172,7 @@
     84@@ -174,6 +174,7 @@ endif
    4485 endif
    4586 
     
    4990 
    5091 LD             += -m $(ld-emul)
    51 diff -ur linux-2.4.32/Makefile linux-2.4.32-openwrt/Makefile
    52 --- linux-2.4.32/Makefile       2005-12-15 13:53:59.000000000 +0100
    53 +++ linux-2.4.32-openwrt/Makefile       2005-12-15 13:59:30.000000000 +0100
    54 @@ -17,7 +17,7 @@
    55  FINDHPATH      = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net $(HPATH)/math-emu
    56  
    57  HOSTCC         = gcc
    58 -HOSTCFLAGS     = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
    59 +HOSTCFLAGS     = -Wall -Wstrict-prototypes -Os -fomit-frame-pointer
    60  
    61  CROSS_COMPILE  =
    62  
    63 @@ -88,10 +88,9 @@
    64  #
    65  # standard CFLAGS
    66  #
    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-common
    73  CFLAGS += -fno-builtin-sprintf
    74  ifndef CONFIG_FRAME_POINTER
    75 @@ -104,6 +103,8 @@
    76  # disable pointer signedness warnings in gcc 4.0
    77  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.