[oe-commits] Holger Hans Peter Freyther : openmoko.conf: Add some post process foo to write a version hint into the rootfs
GIT User account
git at amethyst.openembedded.net
Sat Nov 15 23:39:08 UTC 2008
Module: openembedded.git
Branch: holger/openmoko-merges
Commit: 8ebfb8b25897fd5df378885674b1c23048399225
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8ebfb8b25897fd5df378885674b1c23048399225
Author: Holger Hans Peter Freyther <zecke at selfish.org>
Date: Sun Nov 16 00:26:34 2008 +0100
openmoko.conf: Add some post process foo to write a version hint into the rootfs
This is used by QA, om-settings to allow us to give some
hints about the image. Maybe this should be done with an always
rebuilding recipe...
---
conf/distro/openmoko.conf | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/conf/distro/openmoko.conf b/conf/distro/openmoko.conf
index a4a006f..8caa9ec 100644
--- a/conf/distro/openmoko.conf
+++ b/conf/distro/openmoko.conf
@@ -69,6 +69,16 @@ PREFERRED_PROVIDER_midpath = "midpath-openmoko"
# We don't use this, but select one to shut bitbake up.
PREFERRED_PROVIDER_virtual/libqte2 = "qte"
+# Helper to say what image we built
+OM_VERSION_FILE = "${IMAGE_ROOTFS}/${sysconfdir}/om-version"
+ROOTFS_POSTPROCESS_COMMAND += "OLD_PWD=$PWD; cd `dirname '${FILE_DIRNAME}'`; echo Tag Name: `git tag|tail -n 1`> ${OM_VERSION_FILE};cd $OLD_PWD;"
+ROOTFS_POSTPROCESS_COMMAND += "OLD_PWD=$PWD; cd `dirname '${FILE_DIRNAME}'`; echo VERSION: `git-log -n1 --pretty=oneline|awk '{print $1}'` >> ${OM_VERSION_FILE}; cd $OLD_PWD;"
+ROOTFS_POSTPROCESS_COMMAND += "OLD_PWD=$PWD; cd `dirname '${FILE_DIRNAME}'`; echo Branch: ` git branch |awk '/*/{print $2}'` >> ${OM_VERSION_FILE}; cd $OLD_PWD;"
+ROOTFS_POSTPROCESS_COMMAND += "echo Build Host: `cat /etc/hostname` >> ${OM_VERSION_FILE};"
+ROOTFS_POSTPROCESS_COMMAND += "echo Time Stamp: `date -R` >> ${OM_VERSION_FILE};"
+
+
+
# opkg
PREFERRED_PROVIDER_opkg = "opkg"
More information about the Openembedded-commits
mailing list