diff options
Diffstat (limited to 'conf/distro/openmoko.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" |