summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-08-05 17:43:17 +0000
committerwdenk <wdenk>2003-08-05 17:43:17 +0000
commitbdccc4fedcf9c5fc1f06e8f833d792198c9d04ae (patch)
tree00c1b93f6731d838eae4f8f688d4f95c14471d0a /Makefile
parent96dd9af4c7c5669924c2e40734b246f207b9a8b4 (diff)
downloadu-boot-imx-bdccc4fedcf9c5fc1f06e8f833d792198c9d04ae.zip
u-boot-imx-bdccc4fedcf9c5fc1f06e8f833d792198c9d04ae.tar.gz
u-boot-imx-bdccc4fedcf9c5fc1f06e8f833d792198c9d04ae.tar.bz2
* 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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f375177..c4bb10c 100644
--- a/Makefile
+++ b/Makefile
@@ -117,12 +117,11 @@ 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