[CRIS] Correct image makefiles to allow using a separate OBJ-directory.
authorJesper Nilsson <jesper@jni.nu>
Mon, 30 Jun 2008 18:38:06 +0000 (20:38 +0200)
committerJesper Nilsson <jesper@jni.nu>
Mon, 30 Jun 2008 18:38:06 +0000 (20:38 +0200)
Make compile succeed when building with O= (srctree != objtree).

Signed-off-by: Hinko Kocevar <hinko.kocevar@cetrtapot.si>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/arch-v10/boot/compressed/Makefile
arch/cris/arch-v10/boot/rescue/Makefile
arch/cris/arch-v32/boot/compressed/Makefile
arch/cris/arch-v32/boot/rescue/Makefile

index 9ec5f87d5157175ce75eb4bfb5d03ffc7b23b15e..08d943ce4be78a779a7711e0a5c7612defd986a7 100644 (file)
@@ -4,7 +4,7 @@
 
 asflags-y += $(LINUXINCLUDE)
 ccflags-y += -O2 $(LINUXINCLUDE)
-ldflags-y += -T $(obj)/decompress.ld
+ldflags-y += -T $(srctree)/$(obj)/decompress.ld
 OBJECTS = $(obj)/head.o $(obj)/misc.o
 OBJCOPYFLAGS = -O binary --remove-section=.bss
 
index bea8b9c2a7cf6f9bc2667c53eafcf152dec6fa3f..07688da927080ff123bf80faeffe0522110038db 100644 (file)
@@ -4,7 +4,7 @@
 
 ccflags-y += -O2 $(LINUXINCLUDE)
 asflags-y += $(LINUXINCLUDE)
-ldflags-y += -T $(obj)/rescue.ld
+ldflags-y += -T $(srctree)/$(obj)/rescue.ld
 OBJCOPYFLAGS = -O binary --remove-section=.bss
 obj-$(CONFIG_ETRAX_AXISFLASHMAP) = head.o
 OBJECT := $(obj)/head.o
index 9138938eec382223846acb53286b723899d797ee..d6335f26083bfb3e8c8317047a638bef0b145da3 100644 (file)
@@ -4,7 +4,7 @@
 
 asflags-y += -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
 ccflags-y += -O2 -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
-ldflags-y += -T $(obj)/decompress.ld
+ldflags-y += -T $(srctree)/$(obj)/decompress.ld
 OBJECTS = $(obj)/head.o $(obj)/misc.o
 OBJCOPYFLAGS = -O binary --remove-section=.bss
 
index b548bde185d7b03af77caf62d68d550f075f0a40..44ae0ad61f9050636c529798d393fe092ad0c4c2 100644 (file)
@@ -7,7 +7,7 @@ ccflags-y += -O2 -I $(srctree)/include/asm/arch/mach/ \
                -I $(srctree)/include/asm/arch
 asflags-y += -I $(srctree)/include/asm/arch/mach/ -I $(srctree)/include/asm/arch
 LD = gcc-cris -mlinux -march=v32 -nostdlib
-ldflags-y += -T $(obj)/rescue.ld
+ldflags-y += -T $(srctree)/$(obj)/rescue.ld
 LDPOSTFLAGS = -lgcc
 OBJCOPYFLAGS = -O binary --remove-section=.bss
 obj-$(CONFIG_ETRAX_AXISFLASHMAP) = head.o