X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3746779982e63c0106e0fb7b2ece03eb617b757e..7fee7d1f224b8c02dd8eba0bdb388ab7c504ad99:/rules.mk diff --git a/rules.mk b/rules.mk index 5b411183c..5a54c536d 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/'))