diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-03 20:58:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-03 20:58:02 +0000 |
commit | 6a90baf2bf5799cfcec9912bdd5c670603e5314a (patch) | |
tree | 9548bf4ce25dd8455de91f7284df8a87230a8850 /include/image.mk | |
parent | 0628630664e2bb152072d8f060966a5dcd9fee7e (diff) | |
download | master-31e0f0ae-6a90baf2bf5799cfcec9912bdd5c670603e5314a.tar.gz master-31e0f0ae-6a90baf2bf5799cfcec9912bdd5c670603e5314a.tar.bz2 master-31e0f0ae-6a90baf2bf5799cfcec9912bdd5c670603e5314a.zip |
image.mk: use new pure make functions for sanitizing image filenames
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48106
Diffstat (limited to 'include/image.mk')
-rw-r--r-- | include/image.mk | 12 |
1 files changed, 1 insertions, 11 deletions
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)) |