]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/xtensa/boot/boot-redboot/Makefile
Pull dock into test branch
[linux-2.6-omap-h63xx.git] / arch / xtensa / boot / boot-redboot / Makefile
index ca8a68bc8472b6545ec5cf310154ee00ed74cd32..f53262c2e1f3dce5a219e4b6024b1783c69479f0 100644 (file)
@@ -12,24 +12,24 @@ else
 OBJCOPY_ARGS   := -O elf32-xtensa-le
 endif
 
-LD_ARGS        = -T $(obj)/boot.ld
+LD_ARGS        = -T $(srctree)/$(obj)/boot.ld
 
 boot-y := bootstrap.o
 
 OBJS   := $(addprefix $(obj)/,$(boot-y))
-LIBS   := arch/$(ARCH)/boot/lib/lib.a arch/$(ARCH)/lib/lib.a
+LIBS   := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a
 
 LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
 
 zImage: vmlinux $(OBJS) $(LIBS)
        $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \
-               $(TOPDIR)/vmlinux vmlinux.tmp
+               vmlinux vmlinux.tmp
        gzip -vf9 vmlinux.tmp
        $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
                --add-section image=vmlinux.tmp.gz \
                --set-section-flags image=contents,alloc,load,load,data \
                $(OBJS) $@.tmp
        $(LD) $(LD_ARGS) -o $@.elf $@.tmp $(LIBS) -L/xtensa-elf/lib $(LIBGCC)
-       $(OBJCOPY) -S -O binary $@.elf arch/$(ARCH)/boot/images/$@.redboot
-#      rm -f $@.tmp $@.elf vmlinux.tmp.gz
+       $(OBJCOPY) -S -O binary $@.elf arch/$(ARCH)/boot/$@.redboot
+       rm -f $@.tmp $@.elf vmlinux.tmp.gz