aboutsummaryrefslogtreecommitdiffstats
path: root/include/package.mk
diff options
context:
space:
mode:
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 22808654db..7cfe697937 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)))