summaryrefslogtreecommitdiff
path: root/recipes-core/mlinux/mlinux-version.bb.orig
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/mlinux/mlinux-version.bb.orig')
-rw-r--r--recipes-core/mlinux/mlinux-version.bb.orig22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-core/mlinux/mlinux-version.bb.orig b/recipes-core/mlinux/mlinux-version.bb.orig
new file mode 100644
index 0000000..f2debe1
--- /dev/null
+++ b/recipes-core/mlinux/mlinux-version.bb.orig
@@ -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
+}