Skip to contentSkip to conversation

configure: Ensure we always have a numerical revision level

PATCH New Jan Kiszka 1 participant 1 message Apr 29

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 configure: Ensure we always have a numerical revision level

From: Jan Kiszka <[email protected]>

For major releases or on the development branches, we do not have a revision level in version-core. That leads to an empty CONFIG_XENO_REVISION_LEVEL which will be break XENO_VERSION_CODE.

---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)
configure.ac +3 -0
index 22823756df..0d6dd87b61 100644
@@ -23,6 +23,9 @@ version_code=`cat $srcdir/config/version-code`
 CONFIG_XENO_VERSION_MAJOR=`expr $version_code : '\([[0-9]]*\)'`
 CONFIG_XENO_VERSION_MINOR=`expr $version_code : '[[0-9]]*\.\([[0-9]]*\)'`
 CONFIG_XENO_REVISION_LEVEL=`expr $version_code : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
+if test "x$CONFIG_XENO_REVISION_LEVEL" = "x"; then
+	CONFIG_XENO_REVISION_LEVEL=0
+fi
 CONFIG_XENO_UAPI_LEVEL=`cat $srcdir/config/apirev`
 CONFIG_XENO_VERSION_STRING="$PACKAGE_VERSION"
 topdir=`cd $srcdir && pwd`
Signature · 1 line
2.47.3