summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <clarson@mvista.com>2009-08-19 14:24:19 -0700
committerChris Larson <clarson@mvista.com>2009-08-19 14:54:26 -0700
commit7001e26671dc76aa5f6c4b4bc3a7d341d012b024 (patch)
tree0abb321eeeee6f76df313123c51bc6233981af52
parent08f57c984f40665424512f3d5e201e471ad70cd2 (diff)
distro-version: new general recipe, based on angstrom-version.
Signed-off-by: Chris Larson <clarson@mvista.com>
-rw-r--r--recipes/distro-version/distro-version.bb17
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes/distro-version/distro-version.bb b/recipes/distro-version/distro-version.bb
new file mode 100644
index 0000000000..269186f590
--- /dev/null
+++ b/recipes/distro-version/distro-version.bb
@@ -0,0 +1,17 @@
+LICENSE = "MIT"
+
+PV = "${DISTRO_VERSION}"
+
+INHIBIT_DEFAULT_DEPS = "1"
+PACKAGES = "${PN}"
+PACKAGE_ARCH = "all"
+
+export METADATA_REVISION
+export METADATA_BRANCH
+
+do_install() {
+ mkdir -p ${D}${sysconfdir}
+ echo "${DISTRO_NAME} ${DISTRO_VERSION}" > ${D}${sysconfdir}/${DISTRO}-version
+ echo "Built from branch: ${METADATA_BRANCH}" >> ${D}${sysconfdir}/${DISTRO}-version
+ echo "Revision: ${METADATA_REVISION}" >> ${D}${sysconfdir}/${DISTRO}-version
+}