]> git.sur5r.net Git - u-boot/blobdiff - Makefile
Removed tools/gdb from "make all" target. Added make target "gdbtools"
[u-boot] / Makefile
index f3751770aaf2a3e9779d7468cb28e3f6be82b8c9..249a067f8c4f96b7b23d2771b136c734346b0363 100644 (file)
--- 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 $< > $@
 
@@ -142,6 +148,9 @@ u-boot:             depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
 subdirs:
                @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
 
+gdbtools:
+               $(MAKE) -C tools/gdb || exit 1
+
 depend dep:
                @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
 
@@ -864,7 +873,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