build: allow whitespace characters in VERSION_DIST
authorFelix Fietkau <nbd@nbd.name>
Sat, 21 May 2016 11:57:26 +0000 (13:57 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 21 May 2016 11:57:26 +0000 (13:57 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/image.mk

index d0bf8fc3eacf0a3660e13a1b3f5597387b98ba15..ac8cc2e333cc2575bb7b3c21ee2bcb3b638db09c 100644 (file)
@@ -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))