Skip to content
Snippets Groups Projects
Commit 214cac64 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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

SVN-Revision: 12054
parent a5e83a8b
No related branches found
No related tags found
No related merge requests found
......@@ -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/'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment