summaryrefslogtreecommitdiff
path: root/recipes/shr
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-04-29 09:37:03 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2010-04-30 10:06:21 +0200
commita003dba3b4cc7ffb175c951bf1422cc7332d35ea (patch)
tree117d4d31b1962f79b716af8f1fef313a2453ac49 /recipes/shr
parent7f934c85b0bc4b9bf9760b369b9874584c3519fb (diff)
shr: add shr-version recipe and drop its generation from ROOTFS_POSTPROCESS_COMMAND
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/shr')
-rw-r--r--recipes/shr/shr-version.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/shr/shr-version.bb b/recipes/shr/shr-version.bb
new file mode 100644
index 0000000000..26618aa5cc
--- /dev/null
+++ b/recipes/shr/shr-version.bb
@@ -0,0 +1,16 @@
+LICENSE = "MIT"
+
+PV = "1.0${DISTRO_VERSION}"
+
+PACKAGES = "${PN}"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+export METADATA_REVISION
+export METADATA_BRANCH
+
+do_install() {
+ mkdir -p ${D}${sysconfdir}
+ echo "SHR ${DISTRO_VERSION}" > ${D}${sysconfdir}/shr-version
+ echo "Built from branch: ${METADATA_BRANCH}" >> ${D}${sysconfdir}/shr-version
+ echo "Revision: ${METADATA_REVISION}" >> ${D}${sysconfdir}/shr-version
+}