apex: Create both 8MB and 16MB apex binaries
[openwrt.git] / target / linux / etrax / patches / cris / 005-loader.patch
1 diff -urN linux-2.6.19.2.orig/arch/cris/arch-v10/boot/Makefile linux-2.6.19.2/arch/cris/arch-v10/boot/Makefile
2 --- linux-2.6.19.2.orig/arch/cris/arch-v10/boot/Makefile 2007-05-19 14:31:06.000000000 +0200
3 +++ linux-2.6.19.2/arch/cris/arch-v10/boot/Makefile 2007-05-19 14:32:24.000000000 +0200
4 @@ -2,7 +2,7 @@
5 # arch/cris/arch-v10/boot/Makefile
6 #
7
8 -OBJCOPY = objcopy-cris
9 +OBJCOPY = /usr/local/cris/objcopy-cris
10 OBJCOPYFLAGS = -O binary --remove-section=.bss
11
12 subdir- := compressed rescue
13 diff -urN linux-2.6.19.2.orig/arch/cris/arch-v10/boot/compressed/Makefile linux-2.6.19.2/arch/cris/arch-v10/boot/compressed/Makefile
14 --- linux-2.6.19.2.orig/arch/cris/arch-v10/boot/compressed/Makefile 2007-05-19 14:31:06.000000000 +0200
15 +++ linux-2.6.19.2/arch/cris/arch-v10/boot/compressed/Makefile 2007-05-19 14:33:45.000000000 +0200
16 @@ -4,10 +4,10 @@
17
18 CC = gcc-cris -melf $(LINUXINCLUDE)
19 CFLAGS = -O2
20 -LD = ld-cris
21 +LD = /usr/local/cris/ld-cris
22 LDFLAGS = -T $(obj)/decompress.ld
23 OBJECTS = $(obj)/head.o $(obj)/misc.o
24 -OBJCOPY = objcopy-cris
25 +OBJCOPY = /usr/local/cris/objcopy-cris
26 OBJCOPYFLAGS = -O binary --remove-section=.bss
27
28 quiet_cmd_image = BUILD $@
29 @@ -22,10 +22,10 @@
30 $(call if_changed,objcopy)
31
32 $(obj)/head.o: $(obj)/head.S .config
33 - @$(CC) -D__ASSEMBLY__ -traditional -c $< -o $@
34 + /usr/local/cris/gcc-cris -melf $(LINUXINCLUDE) -D__ASSEMBLY__ -traditional -c $< -o $@
35
36 $(obj)/misc.o: $(obj)/misc.c .config
37 - @$(CC) -D__KERNEL__ -c $< -o $@
38 + /usr/local/cris/gcc-cris -melf $(LINUXINCLUDE) -D__KERNEL__ -c $< -o $@
39
40 $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
41 $(call if_changed,image)
42 diff -urN linux-2.6.19.2.orig/arch/cris/arch-v10/boot/rescue/Makefile linux-2.6.19.2/arch/cris/arch-v10/boot/rescue/Makefile
43 --- linux-2.6.19.2.orig/arch/cris/arch-v10/boot/rescue/Makefile 2007-05-19 14:31:06.000000000 +0200
44 +++ linux-2.6.19.2/arch/cris/arch-v10/boot/rescue/Makefile 2007-05-19 14:34:25.000000000 +0200
45 @@ -2,12 +2,12 @@
46 # Makefile for rescue (bootstrap) code
47 #
48
49 -CC = gcc-cris -mlinux $(LINUXINCLUDE)
50 +CC = /usr/local/cris/gcc-cris -mlinux $(LINUXINCLUDE)
51 CFLAGS = -O2
52 AFLAGS = -traditional
53 -LD = gcc-cris -mlinux -nostdlib
54 +LD = /usr/local/cris/gcc-cris -mlinux -nostdlib
55 LDFLAGS = -T $(obj)/rescue.ld
56 -OBJCOPY = objcopy-cris
57 +OBJCOPY = /usr/local/cris/objcopy-cris
58 OBJCOPYFLAGS = -O binary --remove-section=.bss
59 obj-y = head.o
60 OBJECT = $(obj)/$(obj-y)
This page took 0.054861 seconds and 5 git commands to generate.