mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 00:07:11 +02:00
add helper macro for stripping the last part of a version number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12054 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cda50e23c5
commit
df27ff981b
1
rules.mk
1
rules.mk
@ -27,6 +27,7 @@ empty:=
|
||||
space:= $(empty) $(empty)
|
||||
merge=$(subst $(space),,$(1))
|
||||
confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n)))
|
||||
strip_last=$(patsubst %.$(lastword $(subst .,$(space),$(1))),%,$(1))
|
||||
|
||||
_SINGLE=MAKEFLAGS=$(space)
|
||||
ARCH:=$(call qstrip,$(shell echo $(CONFIG_ARCH) | sed -e 's/i[3-9]86/i386/'))
|
||||
|
Loading…
Reference in New Issue
Block a user