fix config change detect for hostapd
authorFelix Fietkau <nbd@openwrt.org>
Fri, 16 Nov 2007 03:47:11 +0000 (03:47 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 16 Nov 2007 03:47:11 +0000 (03:47 +0000)
SVN-Revision: 9565

package/hostapd/Makefile
rules.mk

index 322f881781c6aabea50dfc3a28deff81e2fbfec4..31ef18d8be78f0642906f916bfdb94797f913443 100644 (file)
@@ -20,7 +20,7 @@ PKG_SOURCE_VERSION:=$(PKG_REV)
 PKG_BUILD_DEPENDS:=madwifi mac80211
 
 include $(INCLUDE_DIR)/package.mk
-STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,PACKAGE_kmod-mac80211 PACKAGE_kmod-madwifi)
+$(eval $(call confvar,STAMP_CONFIGURED,CONFIG_PACKAGE_kmod-mac80211 CONFIG_PACKAGE_kmod-madwifi))
 
 define Package/hostapd/Default
   SECTION:=net
index 4a0fa32e3554b124a5d687825220224df8558dc0..14ff5acdf20ec1642042b14f41aacaea143e5963 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -139,7 +139,10 @@ export $(call shvar,$(1))
 endef
 
 define confvar
-$(foreach v,$(1),$(if $($(v)),y,n))
+$(1):=$$(strip $$($(1)))_
+$(foreach v,$(2),
+  $(1):=$$(strip $$($(1)))$(if $($(v)),y,n)
+)
 endef
 
 # file extension