diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-11-16 00:26:34 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-11-16 00:37:37 +0100 |
commit | 8ebfb8b25897fd5df378885674b1c23048399225 (patch) | |
tree | cd27d1937ba04d8ca19aa2ea974fcad868d1070e /conf | |
parent | 2c1e7d001a5253f7832d628feabdb97f05addb3b (diff) |
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...
Diffstat (limited to 'conf')
-rw-r--r-- | 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 a4a006f92c..8caa9ecb5f 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" |