aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-23 17:12:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-23 17:12:54 +0000
commit9ddb6d845cd75aafe188e3a5b57886882189a724 (patch)
treec11874448ab64db1a60e9cdb89a9d94f1de11233 /package
parent4533fe58cd498859f5f5cdb8aeee61efa2760867 (diff)
downloadmaster-187ad058-9ddb6d845cd75aafe188e3a5b57886882189a724.tar.gz
master-187ad058-9ddb6d845cd75aafe188e3a5b57886882189a724.tar.bz2
master-187ad058-9ddb6d845cd75aafe188e3a5b57886882189a724.zip
hostapd: fix rebuild checks (#6210)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18497 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/hostapd/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile
index bb497fec3b..b1dde1c453 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