diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-11-23 17:12:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-11-23 17:12:54 +0000 |
commit | 79fcadc146717e489c9ea626b6c2c8f95c1de8c6 (patch) | |
tree | 4892adc317951fecfe7360c7d363cb8fcc9368a1 | |
parent | 0153a9bfea5204a4b72e0900ddcc97dfc244a27b (diff) | |
download | mtk-20170518-79fcadc146717e489c9ea626b6c2c8f95c1de8c6.zip mtk-20170518-79fcadc146717e489c9ea626b6c2c8f95c1de8c6.tar.gz mtk-20170518-79fcadc146717e489c9ea626b6c2c8f95c1de8c6.tar.bz2 |
hostapd: fix rebuild checks (#6210)
SVN-Revision: 18497
-rw-r--r-- | include/package.mk | 2 | ||||
-rw-r--r-- | package/hostapd/Makefile | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/package.mk b/include/package.mk index 4ee9d71..90aa51c 100644 --- a/include/package.mk +++ b/include/package.mk @@ -17,7 +17,7 @@ include $(INCLUDE_DIR)/unpack.mk include $(INCLUDE_DIR)/depends.mk STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),))) -STAMP_CONFIGURED:=$(PKG_BUILD_DIR)/.configured$(if $(QUILT)$(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS))) +STAMP_CONFIGURED:=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS))) STAMP_BUILT:=$(PKG_BUILD_DIR)/.built STAMP_INSTALLED:=$(STAGING_DIR)/stamp/.$(PKG_NAME)_installed diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile index bb497fe..b1dde1c 100644 --- a/package/hostapd/Makefile +++ b/package/hostapd/Makefile @@ -80,9 +80,19 @@ define Package/hostapd-utils/description IEEE 802.1x/WPA/EAP/RADIUS Authenticator. endef -define Build/Configure +ifneq ($(wildcard $(PKG_BUILD_DIR)/.config_*),$(subst .configured_,.config_,$(STAMP_CONFIGURED))) + $(warning $(wildcard $(PKG_BUILD_DIR)/.config_*) != $(subst .configured_,.config_,$(STAMP_CONFIGURED))) + define Build/Configure/rebuild rm -f $(PKG_BUILD_DIR)/hostapd/hostapd + rm -f $(PKG_BUILD_DIR)/hostapd/*.o rm -f $(PKG_BUILD_DIR)/src/drivers/drivers.o + rm -f $(PKG_BUILD_DIR)/.config_* + touch $(subst .configured_,.config_,$(STAMP_CONFIGURED)) + endef +endif + +define Build/Configure + $(Build/Configure/rebuild) $(CP) ./files/$(BUILD_VARIANT).config $(PKG_BUILD_DIR)/hostapd/.config endef |