[oe-commits] Chris Larson : distro-version: new general recipe, based on angstrom-version.

git version control git at git.openembedded.org
Wed Aug 19 21:57:06 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 7001e26671dc76aa5f6c4b4bc3a7d341d012b024
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=7001e26671dc76aa5f6c4b4bc3a7d341d012b024

Author: Chris Larson <clarson at mvista.com>
Date:   Wed Aug 19 14:24:19 2009 -0700

distro-version: new general recipe, based on angstrom-version.

Signed-off-by: Chris Larson <clarson at mvista.com>

---

 recipes/distro-version/distro-version.bb |   17 +++++++++++++++++
 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 0000000..269186f
--- /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
+}





More information about the Openembedded-commits mailing list