generic-2.6/patches-2.6.35: fix ocf missing parts
[openwrt.git] / target / linux / etrax / patches-2.6.32 / 100-cris-makefiles.patch
1 --- a/arch/cris/boot/compressed/Makefile
2 +++ b/arch/cris/boot/compressed/Makefile
3 @@ -18,7 +18,7 @@ ldflags-y += -T $(srctree)/$(src)/decomp
4 OBJECTS-$(CONFIG_ETRAX_ARCH_V32) = $(obj)/head_v32.o
5 OBJECTS-$(CONFIG_ETRAX_ARCH_V10) = $(obj)/head_v10.o
6 OBJECTS= $(OBJECTS-y) $(obj)/misc.o
7 -OBJCOPYFLAGS = -O binary --remove-section=.bss
8 +#OBJCOPYFLAGS = -O binary --remove-section=.bss
9
10 quiet_cmd_image = BUILD $@
11 cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
12 --- a/arch/cris/boot/Makefile
13 +++ b/arch/cris/boot/Makefile
14 @@ -5,7 +5,7 @@
15 objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
16 objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss
17
18 -OBJCOPYFLAGS = -O binary $(objcopyflags-y)
19 +#OBJCOPYFLAGS = -O binary $(objcopyflags-y)
20
21
22 subdir- := compressed rescue
23 @@ -17,7 +17,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/boot/rescue/Makefile
33 +++ b/arch/cris/boot/rescue/Makefile
34 @@ -14,7 +14,7 @@ arch-$(CONFIG_ETRAX_ARCH_V10) = v10
35 arch-$(CONFIG_ETRAX_ARCH_V32) = v32
36
37 ldflags-y += -T $(srctree)/$(src)/rescue_$(arch-y).lds
38 -OBJCOPYFLAGS = -O binary --remove-section=.bss
39 +#OBJCOPYFLAGS = -O binary --remove-section=.bss
40 obj-$(CONFIG_ETRAX_ARCH_V32) = $(obj)/head_v32.o
41 obj-$(CONFIG_ETRAX_ARCH_V10) = $(obj)/head_v10.o
42 OBJECTS := $(obj-y)
43 --- a/arch/cris/Makefile
44 +++ b/arch/cris/Makefile
45 @@ -40,7 +40,7 @@ endif
46
47 LD = $(CROSS_COMPILE)ld -mcrislinux
48
49 -OBJCOPYFLAGS := -O binary -R .note -R .comment -S
50 +OBJCOPYFLAGS := -O binary -R .bss -R .note -R .note.gnu.build-id -R .comment -S
51
52 KBUILD_AFLAGS += -mlinux -march=$(arch-y) $(inc)
53 KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe $(inc)
This page took 0.056624 seconds and 5 git commands to generate.