]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/cray/L1/Makefile
kbuild: change out-of-tree build
[karo-tx-uboot.git] / board / cray / L1 / Makefile
index 5f6c690b7c2c41c2c18b63e9d194b92895ecaef7..6aae9fa62f46d7cd999a1406709fce4a9ae1bff8 100644 (file)
@@ -9,8 +9,8 @@ obj-y   = L1.o flash.o
 obj-y  += init.o
 obj-y  += bootscript.o
 
-$(obj)bootscript.c: $(obj)bootscript.image
-       od -t x1 -v -A x $^ | awk -f x2c.awk > $@
+$(obj)/bootscript.c: $(obj)/bootscript.image
+       od -t x1 -v -A x $^ | awk -f $(srctree)/$(src)/x2c.awk > $@
 
-$(obj)bootscript.image: $(src)bootscript.hush $(src)Makefile
-       -$(OBJTREE)/tools/mkimage -A ppc -O linux -T script -C none -a 0 -e 0 -n bootscript -d $(src)bootscript.hush $@
+$(obj)/bootscript.image: $(src)/bootscript.hush
+       -$(OBJTREE)/tools/mkimage -A ppc -O linux -T script -C none -a 0 -e 0 -n bootscript -d $< $@