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
5 # arch/cris/arch-v10/boot/Makefile
8 -OBJCOPY = objcopy-cris
9 +OBJCOPY = /usr/local/cris/objcopy-cris
10 OBJCOPYFLAGS = -O binary --remove-section=.bss
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
18 CC = gcc-cris -melf $(LINUXINCLUDE)
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
28 quiet_cmd_image = BUILD $@
30 $(call if_changed,objcopy)
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 $@
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 $@
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
46 # Makefile for rescue (bootstrap) code
49 -CC = gcc-cris -mlinux $(LINUXINCLUDE)
50 +CC = /usr/local/cris/gcc-cris -mlinux $(LINUXINCLUDE)
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
60 OBJECT = $(obj)/$(obj-y)