diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-31 23:55:39 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-31 23:55:39 +0000 |
commit | 214cac6482a25d6174b25c12dbeb52702cd08172 (patch) | |
tree | e2d46f69fbe34d151a54195b0e1ed7f242c21bb8 /rules.mk | |
parent | a5e83a8bed5832546bd59aefcdeeb97259c6ea90 (diff) | |
download | mtk-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.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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/')) |