From 7f70e85309c6367138c0ebd14abdd49964b8d50a Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 20 May 2003 14:25:27 +0000 Subject: * Patch by David Updegraff, 22 Apr 2003: update for CrayL1 board * Patch by Pantelis Antoniou, 21 Apr 2003: add boot support for ARTOS (a proprietary OS) * Patch by Steven Scholz, 11 Apr 2003: Add support for RTC DS1338 * Patch by Rod Boyce, 24 Jan 2003: Fix counting of extended partitions in diskboot command --- board/cray/L1/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'board/cray/L1/Makefile') 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) -- cgit v1.2.3