summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-03-04 12:19:16 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-03-04 12:19:16 +0000
commit155971e08fb51a7e385d13c649a5651cf261f41b (patch)
tree35dd84bb45307791b39a48831580d246b23a1d7c
parentf26f26fb62ac232d2c09f88f0879676c9e5b07d3 (diff)
downloadbuildroot-novena-155971e08fb51a7e385d13c649a5651cf261f41b.tar.gz
buildroot-novena-155971e08fb51a7e385d13c649a5651cf261f41b.zip
buildroot: add external-deps target
Add external-deps target to show what external files are needed to recreate the build.
-rw-r--r--Makefile5
-rwxr-xr-xtoolchain/wget-show-external-deps.sh6
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5ebf75eae..96436ef51 100644
--- a/Makefile
+++ b/Makefile
@@ -322,6 +322,10 @@ source: $(TARGETS_SOURCE) $(HOST_SOURCE)
_source-check:
$(MAKE) SPIDER=--spider source
+external-deps:
+ @$(MAKE) -Bs BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \
+ source
+
#############################################################
#
# Cleanup and misc junk
@@ -461,6 +465,7 @@ help:
@echo 'Miscellaneous:'
@echo ' source - download all sources needed for offline-build'
@echo ' source-check - check all packages for valid download URLs'
+ @echo ' external-deps - list external packages used'
@echo
@echo 'See docs/README and docs/buildroot.html for further details'
@echo
diff --git a/toolchain/wget-show-external-deps.sh b/toolchain/wget-show-external-deps.sh
new file mode 100755
index 000000000..20071c05f
--- /dev/null
+++ b/toolchain/wget-show-external-deps.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# replacement for wget (see BR2_WGET) which simply shows the file name to be
+# downloaded. Used by the external-deps make target.
+
+exec basename ${!#} \ No newline at end of file