summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsb
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-04-17 15:02:11 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-17 23:16:30 +0100
commit8e53c8c9377022c7a120ab8a140db7ce11f9f1d1 (patch)
treef61c43611f5a919df49413cb66552c065d6251d1 /meta/recipes-extended/lsb
parent375e9502d112a448ee1fa9389125113fb285f152 (diff)
downloadpoky-8e53c8c9377022c7a120ab8a140db7ce11f9f1d1.tar.gz
lsb: Add DISTRO Info to /etc/lsb-release file also add util-linux to DEPENDS
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 (From OE-Core rev: eddb1d6f458bcf8b0473a360fad3f4a259a57d28) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb')
-rw-r--r--meta/recipes-extended/lsb/lsb_1.4.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsb/lsb_1.4.bb b/meta/recipes-extended/lsb/lsb_1.4.bb
index f2f25ba639..e414d93260 100644
--- a/meta/recipes-extended/lsb/lsb_1.4.bb
+++ b/meta/recipes-extended/lsb/lsb_1.4.bb
@@ -4,6 +4,8 @@ HOMEPAGE = "http://prdownloads.sourceforge.net/lsb"
4LICENSE = "GPLv2+" 4LICENSE = "GPLv2+"
5PR = "r2" 5PR = "r2"
6 6
7DEPENDS="util-linux"
8
7LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf" 9LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf"
8 10
9SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/${PV}/lsb-release-${PV}.tar.gz \ 11SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/${PV}/lsb-release-${PV}.tar.gz \
@@ -31,6 +33,9 @@ do_install(){
31 echo -n "core-4.1-${TARGET_ARCH}" >> ${D}/etc/lsb-release 33 echo -n "core-4.1-${TARGET_ARCH}" >> ${D}/etc/lsb-release
32 fi 34 fi
33 echo "\"" >> ${D}/etc/lsb-release 35 echo "\"" >> ${D}/etc/lsb-release
36 echo "DISTRIB_ID=${DISTRO}" >> ${D}/etc/lsb-release
37 echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}/etc/lsb-release
38 echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}/etc/lsb-release
34 39
35 if [ "${TARGET_ARCH}" == "i586" ];then 40 if [ "${TARGET_ARCH}" == "i586" ];then
36 mkdir -p ${D}/etc/lsb-release.d 41 mkdir -p ${D}/etc/lsb-release.d