summaryrefslogtreecommitdiff
path: root/include/image.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-21 13:57:26 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-21 13:57:26 +0200
commit80bb5adf98134858f6c837f4943c0838dd2cf52b (patch)
tree5f4aac1d5acd4d0d35d49961cd899cb514352b53 /include/image.mk
parentb570c0c88e8a020d9e21e556cf05cb3a702fff4d (diff)
downloadmtk-20170518-80bb5adf98134858f6c837f4943c0838dd2cf52b.zip
mtk-20170518-80bb5adf98134858f6c837f4943c0838dd2cf52b.tar.gz
mtk-20170518-80bb5adf98134858f6c837f4943c0838dd2cf52b.tar.bz2
build: allow whitespace characters in VERSION_DIST
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/image.mk')
-rw-r--r--include/image.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk
index d0bf8fc..ac8cc2e 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -18,7 +18,7 @@ KDIR=$(KERNEL_BUILD_DIR)
KDIR_TMP=$(KDIR)/tmp
DTS_DIR:=$(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts
-sanitize = $(call tolower,$(subst _,-,$(1)))
+sanitize = $(call tolower,$(subst _,-,$(subst $(space),-,$(1))))
DIST_SANITIZED:=$(call sanitize,$(VERSION_DIST))
EXTRA_NAME_SANITIZED=$(call sanitize,$(EXTRA_IMAGE_NAME))