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 d0bf8fc..ac8cc2e 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))