summaryrefslogtreecommitdiffstats
path: root/board/cray/L1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'board/cray/L1/Makefile')
-rw-r--r--board/cray/L1/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/board/cray/L1/Makefile b/board/cray/L1/Makefile
index 12b2fa8107..4c09eddd91 100644
--- a/board/cray/L1/Makefile
+++ b/board/cray/L1/Makefile
@@ -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)
OpenPOWER on IntegriCloud