summaryrefslogtreecommitdiff
path: root/recipes/distro-version/distro-version.bb
blob: 269186f590a6040f78fd247c8602f0902c0de6ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}