make should now work on clean compilations, right after make defconfig
[avatt.git] / buildroot / toolchain / kernel-headers / linux-2.6.28.10-cris-objcopy-flags.patch
blob32da2f0873e12046e74a6002bff34e4756d132cd
1 --- linux-2.6.28/arch/cris/Makefile 2008-12-25 00:26:37.000000000 +0100
2 +++ linux-2.6.28.my/arch/cris/Makefile 2009-01-12 13:21:44.000000000 +0100
3 @@ -40,7 +40,7 @@
5 LD = $(CROSS_COMPILE)ld -mcrislinux
7 -OBJCOPYFLAGS := -O binary -R .note -R .comment -S
8 +OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment
10 CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE)
12 diff -urN linux-2.6.28/arch/cris/arch-v10/boot/Makefile linux-2.6.28.my/arch/cris/arch-v10/boot/Makefile
13 --- linux-2.6.28/arch/cris/arch-v10/boot/Makefile 2008-12-25 00:26:37.000000000 +0100
14 +++ linux-2.6.28.my/arch/cris/arch-v10/boot/Makefile 2009-01-12 13:28:25.000000000 +0100
15 @@ -2,8 +2,6 @@
16 # arch/cris/arch-v10/boot/Makefile
19 -OBJCOPYFLAGS = -O binary --remove-section=.bss
21 subdir- := compressed rescue
22 targets := Image
24 diff -urN linux-2.6.28/arch/cris/arch-v10/boot/compressed/Makefile linux-2.6.28.my/arch/cris/arch-v10/boot/compressed/Makefile
25 --- linux-2.6.28/arch/cris/arch-v10/boot/compressed/Makefile 2008-12-25 00:26:37.000000000 +0100
26 +++ linux-2.6.28.my/arch/cris/arch-v10/boot/compressed/Makefile 2009-01-12 13:28:33.000000000 +0100
27 @@ -6,7 +6,6 @@
28 ccflags-y += -O2 $(LINUXINCLUDE)
29 ldflags-y += -T $(srctree)/$(src)/decompress.lds
30 OBJECTS = $(obj)/head.o $(obj)/misc.o
31 -OBJCOPYFLAGS = -O binary --remove-section=.bss
33 quiet_cmd_image = BUILD $@
34 cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
35 diff -urN linux-2.6.28/arch/cris/arch-v10/boot/rescue/Makefile linux-2.6.28.my/arch/cris/arch-v10/boot/rescue/Makefile
36 --- linux-2.6.28/arch/cris/arch-v10/boot/rescue/Makefile 2008-12-25 00:26:37.000000000 +0100
37 +++ linux-2.6.28.my/arch/cris/arch-v10/boot/rescue/Makefile 2009-01-12 13:28:40.000000000 +0100
38 @@ -5,7 +5,6 @@
39 ccflags-y += -O2 $(LINUXINCLUDE)
40 asflags-y += $(LINUXINCLUDE)
41 ldflags-y += -T $(srctree)/$(src)/rescue.lds
42 -OBJCOPYFLAGS = -O binary --remove-section=.bss
43 obj-$(CONFIG_ETRAX_AXISFLASHMAP) = head.o
44 OBJECT := $(obj)/head.o