Makefile: unbreak source-check
authorYann E. MORIN <yann.morin.1998@anciens.enib.fr>
Thu, 14 Jul 2011 11:02:33 +0000 (13:02 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 15 Jul 2011 18:57:59 +0000 (20:57 +0200)
'source-check' breaks because the *_DEFCONFIG options are empty strings.
There is an explicit check to avoid erroring-out when doing 'source', but
not when doing 'source-check'.

This patch set DL_MODE right from the first sub-make call.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Makefile

index 2f3802c1056a8a595f55b5549744e3227947b79e..ffe634391fe61cf2f34a115dd89a7d8088931c0e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -488,9 +488,6 @@ endif
 
 source: $(TARGETS_SOURCE) $(HOST_SOURCE)
 
-_source-check:
-       $(MAKE) DL_MODE=SOURCE_CHECK $(EXTRAMAKEARGS) source
-
 external-deps:
        @$(MAKE) -Bs DL_MODE=SHOW_EXTERNAL_DEPS $(EXTRAMAKEARGS) source | sort -u
 
@@ -595,7 +592,7 @@ savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
 
 # check if download URLs are outdated
 source-check: allyesconfig
-       $(MAKE) $(EXTRAMAKEARGS) _source-check
+       $(MAKE) DL_MODE=SOURCE_CHECK $(EXTRAMAKEARGS) source
 
 endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)