build: allow whitespace characters in VERSION_DIST

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-05-21 13:57:26 +02:00
parent b570c0c88e
commit 80bb5adf98

View 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))