mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
fix hostapd rebuild check, isolate the common src/ directory for hostapd variants as well to fix compile errors when both variants are selected (#2722)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9575 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
10
rules.mk
10
rules.mk
@@ -138,12 +138,10 @@ $(call shvar,$(1))=$$(call $(1))
|
||||
export $(call shvar,$(1))
|
||||
endef
|
||||
|
||||
define confvar
|
||||
$(1):=$$(strip $$($(1)))_
|
||||
$(foreach v,$(2),
|
||||
$(1):=$$(strip $$($(1)))$(if $($(v)),y,n)
|
||||
)
|
||||
endef
|
||||
empty:=
|
||||
space:= $(empty) $(empty)
|
||||
merge=$(subst $(space),,$(1))
|
||||
confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n)))
|
||||
|
||||
# file extension
|
||||
ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1)))
|
||||
|
||||
Reference in New Issue
Block a user