From bdccc4fedcf9c5fc1f06e8f833d792198c9d04ae Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 5 Aug 2003 17:43:17 +0000 Subject: * Map ISP1362 USB OTG controller for NSCU board * Patch by Brad Parker, 02 Aug 2003: fix sc520_cdp problems * Implement Boot Cycle Detection (Req. 2.3 of OSDL CGL Reqirements) * Allow erase command to cross flash bank boundaries --- Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f3751770aa..c4bb10c2cf 100644 --- a/Makefile +++ b/Makefile @@ -116,13 +116,12 @@ LIBS += post/libpost.a post/cpu/libcpu.a LIBS += common/libcommon.a LIBS += lib_generic/libgeneric.a +######################################################################### ######################################################################### -all: u-boot.srec u-boot.bin System.map +ALL = u-boot.srec u-boot.bin System.map -install: all - -cp u-boot.bin /tftpboot/u-boot.bin - -cp u-boot.bin /net/denx/tftpboot/u-boot.bin +all: $(ALL) u-boot.srec: u-boot $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ @@ -130,6 +129,13 @@ u-boot.srec: u-boot u-boot.bin: u-boot $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ +u-boot.img: u-boot.bin + ./tools/mkimage -A $(ARCH) -T firmware -C none \ + -a $(TEXT_BASE) -e 0 \ + -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ + sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ + -d $< $@ + u-boot.dis: u-boot $(OBJDUMP) -d $< > $@ @@ -864,7 +870,7 @@ clobber: clean | xargs rm -f rm -f $(OBJS) *.bak tags TAGS rm -fr *.*~ - rm -f u-boot u-boot.bin u-boot.srec u-boot.map System.map + rm -f u-boot u-boot.map $(ALL) rm -f tools/crc32.c tools/environment.c tools/env/crc32.c rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c rm -f include/asm/proc include/asm/arch include/asm -- cgit v1.2.1