summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-05-13 12:44:06 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-06-12 17:48:15 +0200
commit2f93308273a404379dd22f5cf6cd4b6834c501d4 (patch)
tree91ff30bccd7b282d1903f84486f2bb765ecf214d /scripts
parent610f9fef74b8cdeb1f1f1845db68d3cfaab46665 (diff)
downloadptxdist-2f93308273a404379dd22f5cf6cd4b6834c501d4.tar.gz
ptxdist-2f93308273a404379dd22f5cf6cd4b6834c501d4.tar.xz
define PTXDIST_BSP_AUTOVERSION
This defines a BSP version with the same mechanism that is used for the ptxdist version. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_lib_version.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_version.sh b/scripts/lib/ptxd_lib_version.sh
new file mode 100644
index 000000000..1ed9a6829
--- /dev/null
+++ b/scripts/lib/ptxd_lib_version.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# Copyright (C) 2014 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+ptxd_bsp_autoversion() {
+ PTXDIST_BSP_AUTOVERSION="$("${PTXDIST_TOPDIR}/scripts/kernel/setlocalversion" "${PTXDIST_WORKSPACE}/.tarball-version")"
+ export PTXDIST_BSP_AUTOVERSION
+}
+export -f ptxd_bsp_autoversion
+
+ptxd_bsp_autoversion