build: clean up and optimize ipkg control generator code
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43017 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b898287756
commit
e5526a9fdc
3 changed files with 53 additions and 45 deletions
1
rules.mk
1
rules.mk
|
@ -21,6 +21,7 @@ qstrip=$(strip $(subst ",,$(1)))
|
|||
|
||||
empty:=
|
||||
space:= $(empty) $(empty)
|
||||
comma:=,
|
||||
merge=$(subst $(space),,$(1))
|
||||
confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n)))
|
||||
strip_last=$(patsubst %.$(lastword $(subst .,$(space),$(1))),%,$(1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue