diff options
Diffstat (limited to 'recipes/angstrom/angstrom-version.bb')
-rw-r--r-- | recipes/angstrom/angstrom-version.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/angstrom/angstrom-version.bb b/recipes/angstrom/angstrom-version.bb new file mode 100644 index 0000000000..6f1043cec0 --- /dev/null +++ b/recipes/angstrom/angstrom-version.bb @@ -0,0 +1,18 @@ +LICENSE = "MIT" + +PV = "${DISTRO_VERSION}" +PR = "r2" +PE = "1" + +PACKAGES = "${PN}" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +export METADATA_REVISION +export METADATA_BRANCH + +do_install() { + mkdir -p ${D}${sysconfdir} + echo "Angstrom ${DISTRO_VERSION}" > ${D}${sysconfdir}/angstrom-version + echo "Built from branch: ${METADATA_BRANCH}" >> ${D}${sysconfdir}/angstrom-version + echo "Revision: ${METADATA_REVISION}" >> ${D}${sysconfdir}/angstrom-version +} |