Browse Source

fix config change detect for hostapd

SVN-Revision: 9565
Felix Fietkau 18 years ago
parent
commit
a8c17898cc
2 changed files with 5 additions and 2 deletions
  1. 1 1
      package/hostapd/Makefile
  2. 4 1
      rules.mk

+ 1 - 1
package/hostapd/Makefile

@@ -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

+ 4 - 1
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