summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-05 19:37:40 +0100
committerFelix Fietkau <nbd@nbd.name>2016-05-05 19:43:23 +0100
commit852aaf6b2c836daf39d00e059ec1279aac08f7e9 (patch)
tree6a8bbf1958ba80a9a4732ea86c66ae716892ecf9
parent4e84c6cbd2f19c91ab4c1319ff8020b38d1f05a7 (diff)
downloadmtk-20170518-852aaf6b2c836daf39d00e059ec1279aac08f7e9.zip
mtk-20170518-852aaf6b2c836daf39d00e059ec1279aac08f7e9.tar.gz
mtk-20170518-852aaf6b2c836daf39d00e059ec1279aac08f7e9.tar.bz2
build: add support for specifying extra package dependencies for prepared, configured and built
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--include/package.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/package.mk b/include/package.mk
index ff9a5df..092811c 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -167,7 +167,7 @@ define Build/DefaultTargets
)
$(STAMP_PREPARED) : export PATH=$$(TARGET_PATH_PKG)
- $(STAMP_PREPARED):
+ $(STAMP_PREPARED): $(STAMP_PREPARED_DEPENDS)
@-rm -rf $(PKG_BUILD_DIR)
@mkdir -p $(PKG_BUILD_DIR)
$(foreach hook,$(Hooks/Prepare/Pre),$(call $(hook))$(sep))
@@ -176,7 +176,7 @@ define Build/DefaultTargets
touch $$@
$(call Build/Exports,$(STAMP_CONFIGURED))
- $(STAMP_CONFIGURED): $(STAMP_PREPARED)
+ $(STAMP_CONFIGURED): $(STAMP_PREPARED) $(STAMP_CONFIGURED_DEPENDS)
$(CleanStaging)
$(foreach hook,$(Hooks/Configure/Pre),$(call $(hook))$(sep))
$(Build/Configure)
@@ -185,7 +185,7 @@ define Build/DefaultTargets
touch $$@
$(call Build/Exports,$(STAMP_BUILT))
- $(STAMP_BUILT): $(STAMP_CONFIGURED)
+ $(STAMP_BUILT): $(STAMP_CONFIGURED) $(STAMP_BUILT_DEPENDS)
$(foreach hook,$(Hooks/Compile/Pre),$(call $(hook))$(sep))
$(Build/Compile)
$(foreach hook,$(Hooks/Compile/Post),$(call $(hook))$(sep))