summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-31 23:55:39 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-31 23:55:39 +0000
commit214cac6482a25d6174b25c12dbeb52702cd08172 (patch)
treee2d46f69fbe34d151a54195b0e1ed7f242c21bb8 /rules.mk
parenta5e83a8bed5832546bd59aefcdeeb97259c6ea90 (diff)
downloadmtk-20170518-214cac6482a25d6174b25c12dbeb52702cd08172.zip
mtk-20170518-214cac6482a25d6174b25c12dbeb52702cd08172.tar.gz
mtk-20170518-214cac6482a25d6174b25c12dbeb52702cd08172.tar.bz2
add helper macro for stripping the last part of a version number
SVN-Revision: 12054
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 5b41118..5a54c53 100644
--- a/rules.mk
+++ b/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/'))