summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-09-30 11:12:13 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-09-30 11:12:13 +0000
commitbae55c0f8babceda302e4f63c6f9bfe6c8d5dd8a (patch)
treee009fca9dc0eac2a74fece3a6724b79f99c71cd2 /include
parent2389b46d1d07068a3d708cf6e42b54f3b872fd97 (diff)
build system: add support for download-time make hooks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28322 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/package.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk
index 1c2c179cda..cfb39dac83 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -100,6 +100,11 @@ define Build/DefaultTargets
$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))
$(call Build/Autoclean)
+ download:
+ $(foreach hook,$(Hooks/Download),
+ $(call $(hook))$(sep)
+ )
+
$(STAMP_PREPARED) : export PATH=$$(TARGET_PATH_PKG)
$(STAMP_PREPARED):
@-rm -rf $(PKG_BUILD_DIR)