diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-05-26 15:23:41 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2016-06-01 17:54:36 +0200 |
commit | a7d13178f430027ae9073e0a7d3edc2f344bcea6 (patch) | |
tree | 50fdfe59c955823e9569375d803cfbde9fcf864b /include/version.mk | |
parent | 38d845b40502627e85759b74631aecbd4459575b (diff) | |
download | mtk-20170518-a7d13178f430027ae9073e0a7d3edc2f344bcea6.zip mtk-20170518-a7d13178f430027ae9073e0a7d3edc2f344bcea6.tar.gz mtk-20170518-a7d13178f430027ae9073e0a7d3edc2f344bcea6.tar.bz2 |
include: move VERSION_DIST_SANITIZED to version.mk
Also move sanitize function to version.mk
Prepare use of VERSION_DIST_SANITIZED by IB/SDK/toolchain
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'include/version.mk')
-rw-r--r-- | include/version.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/version.mk b/include/version.mk index ef80240..88d6245 100644 --- a/include/version.mk +++ b/include/version.mk @@ -24,6 +24,8 @@ PKG_CONFIG_DEPENDS += \ qstrip_escape=$(subst ','\'',$(call qstrip,$(1))) #' +sanitize = $(call tolower,$(subst _,-,$(subst $(space),-,$(1)))) + VERSION_NUMBER:=$(call qstrip_escape,$(CONFIG_VERSION_NUMBER)) VERSION_NUMBER:=$(if $(VERSION_NUMBER),$(VERSION_NUMBER),$(REVISION)) @@ -38,6 +40,7 @@ VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),http://downloads.lede-project VERSION_DIST:=$(call qstrip_escape,$(CONFIG_VERSION_DIST)) VERSION_DIST:=$(if $(VERSION_DIST),$(VERSION_DIST),LEDE) +VERSION_DIST_SANITIZED:=$(call sanitize,$(VERSION_DIST)) VERSION_MANUFACTURER:=$(call qstrip_escape,$(CONFIG_VERSION_MANUFACTURER)) VERSION_MANUFACTURER:=$(if $(VERSION_MANUFACTURER),$(VERSION_MANUFACTURER),LEDE) |