Add the DISTRO* fields to the /etc/lsb-release file so the distro
parsing code can find standard information about the Poky Distro
when using the Self-Hosted Image.
The lsb_release command uses getopt which is provided by util-linux
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
LICENSE = "GPLv2+"
PR = "r2"
+DEPENDS="util-linux"
+
LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf"
SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/${PV}/lsb-release-${PV}.tar.gz \
echo -n "core-4.1-${TARGET_ARCH}" >> ${D}/etc/lsb-release
fi
echo "\"" >> ${D}/etc/lsb-release
+ echo "DISTRIB_ID=${DISTRO}" >> ${D}/etc/lsb-release
+ echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}/etc/lsb-release
+ echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}/etc/lsb-release
if [ "${TARGET_ARCH}" == "i586" ];then
mkdir -p ${D}/etc/lsb-release.d