netmodule-linux distro conf: use git describe for distro version

Set distro version from git describe of project root.

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
Ramon Moesching 2018-11-22 15:57:40 +01:00
parent 22640795f0
commit e0533cb69d
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
inherit += "externalgitsrc"
DISTRO = "netmodule-linux" DISTRO = "netmodule-linux"
DISTRO_NAME = "NetModule Linux Distribution" DISTRO_NAME = "NetModule Linux Distribution"
DISTRO_VERSION = "0.9.5" DISTRO_VERSION = "${EXTERNALSRC_GIT_SRCREV}"
DISTRO_CODENAME = "sumo" DISTRO_CODENAME = "sumo"
SDK_VENDOR = "-netmodule" SDK_VENDOR = "-netmodule"
SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"