diff options
author | Jesse Gilles <jgilles@multitech.com> | 2014-11-04 11:51:34 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2014-11-04 11:51:34 -0600 |
commit | e243c30f04c18722dc65effe6d4f275a3f35de46 (patch) | |
tree | 807610ce8af0ead02681d6c3cc89d902ec941652 /recipes-core/multitech/mlinux-version.bb | |
download | meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.gz meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.bz2 meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.zip |
initial commit of mLinux layer
Diffstat (limited to 'recipes-core/multitech/mlinux-version.bb')
-rw-r--r-- | recipes-core/multitech/mlinux-version.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-core/multitech/mlinux-version.bb b/recipes-core/multitech/mlinux-version.bb new file mode 100644 index 0000000..f2debe1 --- /dev/null +++ b/recipes-core/multitech/mlinux-version.bb @@ -0,0 +1,22 @@ +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +inherit mlinux_metadata_scm + +# always parse this file so PV can change automatically +__BB_DONT_CACHE = "1" + +PV = "${DISTRO_VERSION}_${MLINUX_METADATA_REVISION}" +PR = "r2" +PE = "1" + +PACKAGES = "${PN}" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +do_install() { + mkdir -p ${D}${sysconfdir} + echo "mLinux ${DISTRO_VERSION}" > ${D}${sysconfdir}/mlinux-version + echo "Built from branch: ${MLINUX_METADATA_BRANCH}" >> ${D}${sysconfdir}/mlinux-version + echo "Revision: ${MLINUX_METADATA_REVISION}" >> ${D}${sysconfdir}/mlinux-version + echo "${MLINUX_LAYERS}" > ${D}${sysconfdir}/mlinux-layers +} |