[Buildroot] [PATCH 1/5] packages: pass the package name to the DOWNLOAD macro
Luca Ceresoli
luca at lucaceresoli.net
Mon Jul 12 21:30:48 UTC 2010
This enables DOWNLOAD to have a more complex behaviour than it currently can.
Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
---
package/Makefile.package.in | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index c476de9..8243ed5 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -76,6 +76,7 @@ TERM_RESET := $(shell tput rmso)
#
# Argument 1 is the source location
# Argument 2 is the source filename
+# Argument 3 is the uppercase package name
#
# E.G. use like this:
# $(call DOWNLOAD,$(FOO_SITE),$(FOO_SOURCE))
@@ -124,7 +125,7 @@ ifeq ($(SPIDER),)
(test -z $($(PKG)_PATCH) || test -e $(DL_DIR)$($(PKG)_PATCH))) || \
$(call MESSAGE,"Downloading")
endif
- $(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_SOURCE))
+ $(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_SOURCE),$(PKG))
$(if $($(PKG)_PATCH),$(call DOWNLOAD,$($(PKG)_SITE),$($(PKG)_PATCH)))
ifeq ($(SPIDER),)
$(Q)mkdir -p $(@D)
--
1.7.0.4
More information about the buildroot
mailing list