]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cray/L1/Makefile
* Patch by David Updegraff, 22 Apr 2003:
[karo-tx-uboot.git] / board / cray / L1 / Makefile
index 12b2fa8107d6081ce2858f58cd01c69a45dba18b..4c09eddd91be85bcbfd37228a8457fa87b14161a 100644 (file)
@@ -25,18 +25,28 @@ include $(TOPDIR)/config.mk
 
 LIB    = lib$(BOARD).a
 
-OBJS   = $(BOARD).o flash.o
-SOBJS  = init.o
+OBJS   = $(BOARD).o flash.o bootscript.o
+SOBJS  = init.o 
 
 $(LIB):        $(OBJS) $(SOBJS)
        $(AR) crv $@ $^
 
 clean:
-       rm -f $(SOBJS) $(OBJS)
+       rm -f $(SOBJS) $(OBJS) bootscript.c bootscript.image
 
 distclean:     clean
        rm -f $(LIB) core *.bak .depend
 
+$(BOARD).o: $(BOARD).c bootscript.o
+
+bootscript.o: bootscript.c
+
+bootscript.c: bootscript.image
+       od -t x1 -v -A x $^ | awk -f x2c.awk > $@
+
+bootscript.image: bootscript.hush Makefile
+       -$(TOPDIR)/tools/mkimage -A ppc -O linux -T script -C none -a 0 -e 0 -n bootscript -d  bootscript.hush $@
+
 #########################################################################
 
 .depend:       Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)