aboutsummaryrefslogtreecommitdiffstats
path: root/include/package.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-12-12 12:20:56 +0100
committerFelix Fietkau <nbd@nbd.name>2017-12-12 12:45:28 +0100
commit905bbc96efdef696c33d8a8bc202a7a35fe7fe35 (patch)
treecd0594838b930484b4a45d7c8265c3023eb9a256 /include/package.mk
parente4a69bda612496160b21902ffade868c12ad9fb6 (diff)
downloadupstream-905bbc96efdef696c33d8a8bc202a7a35fe7fe35.tar.gz
upstream-905bbc96efdef696c33d8a8bc202a7a35fe7fe35.tar.bz2
upstream-905bbc96efdef696c33d8a8bc202a7a35fe7fe35.zip
build: allow PKG_PREPARED_DEPENDS and PKG_CONFIG_DEPENDS to be changed after including package.mk
Reverts commit a9c96ef0ac7ac99e4928f5312f3d0d1252c98328 and replaces it with a different approach Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/package.mk')
-rw-r--r--include/package.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/package.mk b/include/package.mk
index 5dc4aec70d..e804b02b04 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -69,9 +69,9 @@ ifneq ($(PREV_STAMP_PREPARED),)
STAMP_PREPARED:=$(PREV_STAMP_PREPARED)
CONFIG_AUTOREBUILD:=
else
- STAMP_PREPARED:=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),))_$(call confvar,CONFIG_AUTOREMOVE $(PKG_PREPARED_DEPENDS)))
+ STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),))_$(call confvar,CONFIG_AUTOREMOVE $(PKG_PREPARED_DEPENDS)))
endif
-STAMP_CONFIGURED:=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS)))
+STAMP_CONFIGURED=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS)))
STAMP_CONFIGURED_WILDCARD=$(PKG_BUILD_DIR)/.configured_*
STAMP_BUILT:=$(PKG_BUILD_DIR)/.built
STAMP_INSTALLED:=$(STAGING_DIR)/stamp/.$(PKG_DIR_NAME)$(if $(BUILD_VARIANT),.$(BUILD_VARIANT),)_installed
@@ -144,6 +144,9 @@ endef
Build/Exports=$(Build/Exports/Default)
define Build/CoreTargets
+ STAMP_PREPARED:=$$(STAMP_PREPARED)
+ STAMP_CONFIGURED:=$$(STAMP_CONFIGURED)
+
$(if $(QUILT),$(Build/Quilt))
$(call Build/Autoclean)
$(call DefaultTargets)