From: Felix Fietkau Date: Sun, 3 Jan 2016 20:58:02 +0000 (+0000) Subject: image.mk: use new pure make functions for sanitizing image filenames X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a90baf2bf5799cfcec9912bdd5c670603e5314a;p=librecmc%2Flibrecmc.git image.mk: use new pure make functions for sanitizing image filenames Signed-off-by: Felix Fietkau SVN-Revision: 48106 --- diff --git a/include/image.mk b/include/image.mk index cebe42e9d0..5ef800234b 100644 --- a/include/image.mk +++ b/include/image.mk @@ -18,17 +18,7 @@ KDIR=$(KERNEL_BUILD_DIR) KDIR_TMP=$(KDIR)/tmp DTS_DIR:=$(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts -define toupper -$(shell echo $(1) | tr '[:lower:]' '[:upper:]') -endef - -define tolower -$(shell echo $(1) | tr '[:upper:]' '[:lower:]') -endef - -define sanitize -$(shell echo $(call tolower,$(1)) | sed 's/_/-/g') -endef +sanitize = $(call tolower,$(subst _,-,$(1))) DIST_SANITIZED:=$(call sanitize,$(VERSION_DIST)) EXTRA_NAME_SANITIZED=$(call sanitize,$(EXTRA_IMAGE_NAME))