summaryrefslogtreecommitdiff
path: root/recipes-core/mlinux/mlinux-version.bb
blob: 85adfbba35b4d73f84e832be8b1472b4f9774e23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
}