mirror of https://github.com/hak5/openwrt.git
build: improve reliability of PKG_CONFIG_DEPENDS, remove old .configured_* stamps before creating a new one
SVN-Revision: 28770lede-17.01
parent
fcea88e3b5
commit
edb862e8ec
|
@ -33,6 +33,7 @@ else
|
||||||
STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),)))
|
STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),)))
|
||||||
endif
|
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=$(patsubst %_$(call confvar,$(PKG_CONFIG_DEPENDS)),%_*,$(STAMP_CONFIGURED))
|
||||||
STAMP_BUILT:=$(PKG_BUILD_DIR)/.built
|
STAMP_BUILT:=$(PKG_BUILD_DIR)/.built
|
||||||
STAMP_INSTALLED:=$(STAGING_DIR)/stamp/.$(PKG_NAME)_installed
|
STAMP_INSTALLED:=$(STAGING_DIR)/stamp/.$(PKG_NAME)_installed
|
||||||
|
|
||||||
|
@ -131,6 +132,7 @@ define Build/DefaultTargets
|
||||||
$(foreach hook,$(Hooks/Configure/Pre),$(call $(hook))$(sep))
|
$(foreach hook,$(Hooks/Configure/Pre),$(call $(hook))$(sep))
|
||||||
$(Build/Configure)
|
$(Build/Configure)
|
||||||
$(foreach hook,$(Hooks/Configure/Post),$(call $(hook))$(sep))
|
$(foreach hook,$(Hooks/Configure/Post),$(call $(hook))$(sep))
|
||||||
|
rm -f $(STAMP_CONFIGURED_WILDCARD)
|
||||||
touch $$@
|
touch $$@
|
||||||
|
|
||||||
$(call Build/Exports,$(STAMP_BUILT))
|
$(call Build/Exports,$(STAMP_BUILT))
|
||||||
|
|
Loading…
Reference in New Issue