uncompress patches, requested by Kaloz
[openwrt.git] / openwrt / package / linux / kernel-patches / 001-Makefile
1 --- ../../../kernel/linux-mips-cvs/Makefile 2005-01-20 03:19:21.000000000 +0100
2 +++ linux-2.4.29.new/Makefile 2005-03-15 01:15:27.441095231 +0100
3 @@ -17,9 +17,9 @@
4 FINDHPATH = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net $(HPATH)/math-emu
5
6 HOSTCC = gcc
7 -HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
8 +HOSTCFLAGS = -Wall -Wstrict-prototypes -Os -fomit-frame-pointer
9
10 -CROSS_COMPILE =
11 +CROSS_COMPILE=
12
13 #
14 # Include the make variables (CC, etc...)
15 @@ -91,8 +91,18 @@
16
17 CPPFLAGS := -D__KERNEL__ -I$(HPATH)
18
19 -CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
20 +CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
21 -fno-strict-aliasing -fno-common
22 +
23 +
24 +# Turn on -pg to instrument the kernel with calls to mcount().
25 +# Unfortunately, gcc won't allow -pg without frame pointers.
26 +ifdef CONFIG_MCOUNT
27 + CFLAGS += -pg
28 + CFLAGS_KERNEL += -pg
29 + CONFIG_FRAME_POINTER = 1
30 +endif
31 +
32 ifndef CONFIG_FRAME_POINTER
33 CFLAGS += -fomit-frame-pointer
34 endif
35 @@ -501,7 +511,7 @@
36 ifdef CONFIG_MODVERSIONS
37 $(MAKE) update-modverfile
38 endif
39 - scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
40 + (find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs -r scripts/mkdep -- ) > .hdepend
41 scripts/mkdep -- init/*.c > .depend
42
43 ifdef CONFIG_MODVERSIONS
This page took 0.046325 seconds and 5 git commands to generate.