summaryrefslogtreecommitdiff
path: root/include/package.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-08-31 01:11:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-08-31 01:11:25 +0000
commit5af113eb7c0f6e4b2d09e536e1a2adc4e2d6071d (patch)
tree96d48a11f9d8a0fa99919569c0501b1308a7a153 /include/package.mk
parent15b832c0b7bba20c2b80826e3aaa458cb103cb22 (diff)
downloadmtk-20170518-5af113eb7c0f6e4b2d09e536e1a2adc4e2d6071d.zip
mtk-20170518-5af113eb7c0f6e4b2d09e536e1a2adc4e2d6071d.tar.gz
mtk-20170518-5af113eb7c0f6e4b2d09e536e1a2adc4e2d6071d.tar.bz2
add support for build system overlays that alter package build instructions currently unused, will probably be managed by the feeds system later
SVN-Revision: 17445
Diffstat (limited to 'include/package.mk')
-rw-r--r--include/package.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/package.mk b/include/package.mk
index 2280865..7cfe697 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -145,7 +145,14 @@ define Build/DefaultTargets
distcheck: $(STAMP_CONFIGURED)
endef
+define Build/IncludeOverlay
+ $(eval -include $(wildcard $(TOPDIR)/overlay/*/$(PKG_NAME).mk))
+ define Build/IncludeOverlay
+ endef
+endef
+
define BuildPackage
+ $(Build/IncludeOverlay)
$(eval $(Package/Default))
$(eval $(Package/$(1)))