Skip to contentSkip to conversation

source-check: change behavior to check only selected packages / add source-check-all

PATCH New Thomas De Schampheleire 2 participants 3 messages Jun 22, 2012 – Jun 24, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 source-check: change behavior to check only selected packages / add source-check-all

The original 'source-check' target first selects all packages, and then checks whether the package tarballs can be found. This is useful for Buildroot maintainers, but less useful for developers working on a specific project. The latter only care about the packages used in that project.

This patch removes the allyesconfig dependency to source-check so that only selected packages are checked. The original behavior is moved to a new target 'source-check-all'.

---
 Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
Makefile +5 -3
@@ -48,7 +48,7 @@ export BR2_VERSION_FULL:=$(BR2_VERSION)$
 noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \
 	defconfig %_defconfig savedefconfig allyesconfig allnoconfig silentoldconfig release \
 	randpackageconfig allyespackageconfig allnopackageconfig \
-	source-check print-version
+	source-check source-check-all print-version
 
 # Strip quotes and then whitespaces
 qstrip=$(strip $(subst ",,$(1)))
@@ -585,7 +585,8 @@ savedefconfig: $(BUILD_DIR)/buildroot-co
 	@$(COMMON_CONFIG_ENV) $< --savedefconfig=$(CONFIG_DIR)/defconfig $(CONFIG_CONFIG_IN)
 
 # check if download URLs are outdated
-source-check: allyesconfig
+source-check-all: allyesconfig source-check
+source-check:
 	$(MAKE) DL_MODE=SOURCE_CHECK $(EXTRAMAKEARGS) source
 
 endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
@@ -672,7 +673,8 @@ endif
 	@echo
 	@echo 'Miscellaneous:'
 	@echo '  source                 - download all sources needed for offline-build'
-	@echo '  source-check           - check all packages for valid download URLs'
+	@echo '  source-check           - check selected packages for valid download URLs'
+	@echo '  source-check-all       - check all packages for valid download URLs'
 	@echo '  external-deps          - list external packages used'
 	@echo
 	@echo '  make V=0|1             - 0 => quiet build (default), 1 => verbose build'
#1 lore raw

PATCH 1/1 source-check: change behavior to check only selected packages / add source-check-all

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas De Schampheleire <[email protected]> writes:

Thomas> The original 'source-check' target first selects all packages, Thomas> and then checks whether the package tarballs can be found. This Thomas> is useful for Buildroot maintainers, but less useful for Thomas> developers working on a specific project. The latter only care Thomas> about the packages used in that project.

Thomas> This patch removes the allyesconfig dependency to source-check Thomas> so that only selected packages are checked. The original Thomas> behavior is moved to a new target 'source-check-all'.

Committed, thanks - But as we don't have the 'select-all-packages' functionality for 'make source' which is the parallel of 'make source-check', I decided to just get rid of source-check-all completely.

People can always do make allyesconfig; make source-check if they want the old behaviour.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 source-check: change behavior to check only selected packages / add source-check-all

Op 23 jun. 2012 23:32 schreef "Peter Korsgaard" <[email protected]> het volgende:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Thomas" == Thomas De Schampheleire <

Quoted 11 lines · [email protected]> writes:

Thomas> The original 'source-check' target first selects all packages, Thomas> and then checks whether the package tarballs can be found. This Thomas> is useful for Buildroot maintainers, but less useful for Thomas> developers working on a specific project. The latter only care Thomas> about the packages used in that project.

Thomas> This patch removes the allyesconfig dependency to source-check Thomas> so that only selected packages are checked. The original Thomas> behavior is moved to a new target 'source-check-all'.

Quoted 7 lines

Committed, thanks - But as we don't have the 'select-all-packages' functionality for 'make source' which is the parallel of 'make source-check', I decided to just get rid of source-check-all completely.

People can always do make allyesconfig; make source-check if they want the old behaviour.

Ok, no problem, thanks.

Best regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120624/d5bd2f16/attachment.html>