aboutsummaryrefslogtreecommitdiff
path: root/recipes/distro-version/distro-version.bb
blob: a189ec79797b232feda783f7f84e19ef13e1482b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
LICENSE = "MIT"

PV = "${DISTRO_VERSION}"

INHIBIT_DEFAULT_DEPS = "1"
PACKAGES = "${PN}"
PACKAGE_ARCH = "all"

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
}