1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-20 23:58:27 +02:00

add helper macro for stripping the last part of a version number

SVN-Revision: 12054
This commit is contained in:
Felix Fietkau 2008-07-31 23:55:39 +00:00
parent a5e83a8bed
commit 214cac6482

View File

@ -27,6 +27,7 @@ empty:=
space:= $(empty) $(empty) space:= $(empty) $(empty)
merge=$(subst $(space),,$(1)) merge=$(subst $(space),,$(1))
confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n))) confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n)))
strip_last=$(patsubst %.$(lastword $(subst .,$(space),$(1))),%,$(1))
_SINGLE=MAKEFLAGS=$(space) _SINGLE=MAKEFLAGS=$(space)
ARCH:=$(call qstrip,$(shell echo $(CONFIG_ARCH) | sed -e 's/i[3-9]86/i386/')) ARCH:=$(call qstrip,$(shell echo $(CONFIG_ARCH) | sed -e 's/i[3-9]86/i386/'))