]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
tools: allow people to compile w/out configuring
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Jan 2010 09:03:22 +0000 (04:03 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 21 Jan 2010 22:00:08 +0000 (23:00 +0100)
It's useful to be able to build up the host tools without having to select
a board first.  Pretty much all tools in there are config-independent
anyways.

Also add a shortcut "tools-all" to quickly build all host tools that are
actually config-independent to allow for simple test builds.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Makefile
tools/Makefile

index 96a00d42dfdad3867cd80cb40fc4160b36383e30..2403ad97c3bfd60e931be722a9283b28d52dd80d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -451,10 +451,15 @@ $(obj)include/autoconf.mk: $(obj)include/config.h
 else   # !config.mk
 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
-$(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
-dep tags ctags etags cscope $(obj)System.map:
+$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \
+updater env depend dep tags ctags etags cscope $(obj)System.map:
        @echo "System not configured - see README" >&2
        @ exit 1
+
+tools:
+       $(MAKE) -C tools
+tools-all:
+       $(MAKE) -C tools HOST_TOOLS_ALL=y
 endif  # config.mk
 
 .PHONY : CHANGELOG
index 5b8c3c371bd15175519a587b4e3d908403a563c3..d3b1518446dbd22d37172ebec4c6a863ed7a9315 100644 (file)
@@ -38,6 +38,15 @@ endif
 #
 include $(TOPDIR)/config.mk
 
+# Enable all the config-independent tools
+ifneq ($(HOST_TOOLS_ALL),)
+CONFIG_LCD_LOGO = y
+CONFIG_CMD_NET = y
+CONFIG_INCA_IP = y
+CONFIG_NETCONSOLE = y
+CONFIG_SHA1_CHECK_UB_IMG = y
+endif
+
 # Generated executable files
 BIN_FILES-$(CONFIG_LCD_LOGO) += bmp_logo$(SFX)
 BIN_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo$(SFX)