]> git.sur5r.net Git - u-boot/commitdiff
tools/Makefile: Make img2srec dependent upon CONFIG_CMD_LOADS
authorPeter Tyser <ptyser@xes-inc.com>
Fri, 13 Mar 2009 23:54:36 +0000 (18:54 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 3 Apr 2009 23:11:14 +0000 (01:11 +0200)
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
tools/Makefile

index 3c59bba8040ad79c3d30602d404626bb81343a6f..b4bd4172b1438147f6cbf6ce5a942749391b49e9 100644 (file)
@@ -73,7 +73,7 @@ endif
 include $(TOPDIR)/config.mk
 
 # Generated executable files
-BIN_FILES-y += img2srec$(SFX)
+BIN_FILES-$(CONFIG_CMD_LOADS) += img2srec$(SFX)
 BIN_FILES-y += mkimage$(SFX)
 BIN_FILES-y += envcrc$(SFX)
 BIN_FILES-y += ubsha1$(SFX)
@@ -88,7 +88,7 @@ OBJ_LINKS-y += sha1.o
 OBJ_LINKS-y += image.o
 
 # Source files located in the tools directory
-OBJ_FILES-y += img2srec.o
+OBJ_FILES-$(CONFIG_CMD_LOADS) += img2srec.o
 OBJ_FILES-y += mkimage.o
 OBJ_FILES-y += envcrc.o
 OBJ_FILES-y += ubsha1.o