summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-30 11:12:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-09-30 11:12:13 +0000
commit1b8dd6ed1cb9285c227bf28fed95478ad4ae77cb (patch)
tree85deaa361266f03d7b4cbb51aa903c88f7dc2838 /include
parentf3be1b4890b624c7031681e54f8f24ca0b44196f (diff)
downloadmtk-20170518-1b8dd6ed1cb9285c227bf28fed95478ad4ae77cb.zip
mtk-20170518-1b8dd6ed1cb9285c227bf28fed95478ad4ae77cb.tar.gz
mtk-20170518-1b8dd6ed1cb9285c227bf28fed95478ad4ae77cb.tar.bz2
build system: add support for download-time make hooks
SVN-Revision: 28322
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 1c2c179..cfb39da 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)