bf43914f73289bbc45e51f4ac67ca14bb0d129d5
[15.05/openwrt.git] / target / linux / etrax / patches-2.6.30 / 100-cris-makefiles.patch
1 --- a/arch/cris/Makefile
2 +++ b/arch/cris/Makefile
3 @@ -40,7 +40,7 @@ endif
4  
5  LD = $(CROSS_COMPILE)ld -mcrislinux
6  
7 -OBJCOPYFLAGS := -O binary -R .note -R .comment -S
8 +OBJCOPYFLAGS := -O binary -R .bss -R .note -R .note.gnu.build-id -R .comment -S
9  
10  CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE)
11  
12 --- a/arch/cris/arch-v10/boot/Makefile
13 +++ b/arch/cris/arch-v10/boot/Makefile
14 @@ -2,8 +2,6 @@
15  # arch/cris/arch-v10/boot/Makefile
16  #
17  
18 -OBJCOPYFLAGS = -O binary --remove-section=.bss
19 -
20  subdir- := compressed rescue
21  targets := Image
22  
23 @@ -13,7 +11,7 @@ $(obj)/Image: vmlinux FORCE
24  
25  $(obj)/compressed/vmlinux: $(obj)/Image FORCE
26         $(Q)$(MAKE) $(build)=$(obj)/compressed $@
27 -       $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
28 +#      $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
29  
30  $(obj)/zImage:  $(obj)/compressed/vmlinux
31         @cp $< $@
32 --- a/arch/cris/arch-v10/boot/compressed/Makefile
33 +++ b/arch/cris/arch-v10/boot/compressed/Makefile
34 @@ -6,7 +6,6 @@ asflags-y += $(LINUXINCLUDE)
35  ccflags-y += -O2 $(LINUXINCLUDE)
36  ldflags-y += -T $(srctree)/$(src)/decompress.lds
37  OBJECTS = $(obj)/head.o $(obj)/misc.o
38 -OBJCOPYFLAGS = -O binary --remove-section=.bss
39  
40  quiet_cmd_image = BUILD   $@
41  cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
42 --- a/arch/cris/arch-v10/boot/rescue/Makefile
43 +++ b/arch/cris/arch-v10/boot/rescue/Makefile
44 @@ -5,7 +5,6 @@
45  ccflags-y += -O2 $(LINUXINCLUDE)
46  asflags-y += $(LINUXINCLUDE)
47  ldflags-y += -T $(srctree)/$(src)/rescue.lds
48 -OBJCOPYFLAGS = -O binary --remove-section=.bss
49  obj-$(CONFIG_ETRAX_AXISFLASHMAP) = head.o
50  OBJECT := $(obj)/head.o
51