summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2011-05-10 16:28:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-11 16:43:22 +0100
commit1320cad1ca5c10a3b639ac2b7116bd8acd735725 (patch)
tree9bd29b74590349c952043fe72b815a35f0dadcab /meta
parent57d50baa7dc318471d5915c405ccba8032a02249 (diff)
downloadpoky-1320cad1ca5c10a3b639ac2b7116bd8acd735725.tar.gz
wq!lsb: Add init-functions to lsb-image
init-functions is needed by LSB Test Suite. (From OE-Core rev: 2fd69dbdb44b29116c3dbdab5a63b16ae76f2062) Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/lsb/lsb_1.4.bb39
1 files changed, 25 insertions, 14 deletions
diff --git a/meta/recipes-extended/lsb/lsb_1.4.bb b/meta/recipes-extended/lsb/lsb_1.4.bb
index 17fb0e7e30..166ba4c87a 100644
--- a/meta/recipes-extended/lsb/lsb_1.4.bb
+++ b/meta/recipes-extended/lsb/lsb_1.4.bb
@@ -7,7 +7,13 @@ PR = "r0"
7 7
8LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf" 8LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf"
9 9
10SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/${PV}/lsb-release-${PV}.tar.gz" 10SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/${PV}/lsb-release-${PV}.tar.gz \
11 file://init-functions \
12 file://lsb_killproc \
13 file://lsb_log_message \
14 file://lsb_pidofproc \
15 file://lsb_start_daemon \
16 "
11 17
12SRC_URI[md5sum] = "30537ef5a01e0ca94b7b8eb6a36bb1e4" 18SRC_URI[md5sum] = "30537ef5a01e0ca94b7b8eb6a36bb1e4"
13SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172" 19SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172"
@@ -18,45 +24,50 @@ do_install(){
18 mkdir -p ${D}/bin 24 mkdir -p ${D}/bin
19 mkdir -p ${D}/lib 25 mkdir -p ${D}/lib
20 mkdir -p ${D}/etc/lsb-release.d 26 mkdir -p ${D}/etc/lsb-release.d
21 echo -n "LSB_VERSION=\"core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:" > ${D}/etc/lsb-release 27 echo -n "LSB_VERSION=\"core-4.1-noarch:" > ${D}/etc/lsb-release
22 28
23 if [ "${TARGET_ARCH}" == "i586" ];then 29 if [ "${TARGET_ARCH}" == "i586" ];then
24 echo -n "core-2.0-ia32:core-3.2-ia32:core-4.0-ia32" >> ${D}/etc/lsb-release 30 echo -n "core-4.1-ia32" >> ${D}/etc/lsb-release
25 else 31 else
26 echo -n "core-2.0-${TARGET_ARCH}:core-3.2-${TARGET_ARCH}:core-4.0-${TARGET_ARCH}" >> ${D}/etc/lsb-release 32 echo -n "core-4.1-${TARGET_ARCH}" >> ${D}/etc/lsb-release
27 fi 33 fi
28 echo "\"" >> ${D}/etc/lsb-release 34 echo "\"" >> ${D}/etc/lsb-release
29 35
30 if [ "${TARGET_ARCH}" == "i586" ];then 36 if [ "${TARGET_ARCH}" == "i586" ];then
31 mkdir -p ${D}/etc/lsb-release.d 37 mkdir -p ${D}/etc/lsb-release.d
32 touch ${D}/etc/lsb-release.d/graphics-2.0-noarch 38 touch ${D}/etc/lsb-release.d/graphics-4.1-noarch
33 touch ${D}/etc/lsb-release.d/graphics-3.2-noarch
34 touch ${D}/etc/lsb-release.d/graphics-${PV}-noarch 39 touch ${D}/etc/lsb-release.d/graphics-${PV}-noarch
35 touch ${D}/etc/lsb-release.d/desktop-${PV}-noarch 40 touch ${D}/etc/lsb-release.d/desktop-${PV}-noarch
36 touch ${D}/etc/lsb-release.d/graphics-2.0-ia32 41 touch ${D}/etc/lsb-release.d/graphics-4.1-ia32
37 touch ${D}/etc/lsb-release.d/graphics-3.2-ia32
38 touch ${D}/etc/lsb-release.d/graphics-${PV}-ia32 42 touch ${D}/etc/lsb-release.d/graphics-${PV}-ia32
39 touch ${D}/etc/lsb-release.d/desktop-${PV}-ia32 43 touch ${D}/etc/lsb-release.d/desktop-${PV}-ia32
40 elif [ "${TARGET_ARCH}" == "x86_64" ];then 44 elif [ "${TARGET_ARCH}" == "x86_64" ];then
41 touch ${D}/etc/lsb-release.d/graphics-2.0-amd64 45 touch ${D}/etc/lsb-release.d/graphics-4.1-noarch
42 touch ${D}/etc/lsb-release.d/graphics-3.2-amd64 46 touch ${D}/etc/lsb-release.d/graphics-4.1-amd64
43 touch ${D}/etc/lsb-release.d/graphics-${PV}-amd64 47 touch ${D}/etc/lsb-release.d/graphics-${PV}-amd64
44 touch ${D}/etc/lsb-release.d/desktop-${PV}-amd64 48 touch ${D}/etc/lsb-release.d/desktop-${PV}-amd64
45 fi 49 fi
46 if [ "${TARGET_ARCH}" = "powerpc" ];then 50 if [ "${TARGET_ARCH}" = "powerpc" ];then
47 touch ${D}/etc/lsb-release.d/graphics-2.0-ppc32 51 touch ${D}/etc/lsb-release.d/graphics-4.1-noarch
48 touch ${D}/etc/lsb-release.d/graphics-3.2-ppc32 52 touch ${D}/etc/lsb-release.d/graphics-4.1-ppc32
49 touch ${D}/etc/lsb-release.d/graphics-${PV}-ppc32 53 touch ${D}/etc/lsb-release.d/graphics-${PV}-ppc32
50 touch ${D}/etc/lsb-release.d/desktop-${PV}-ppc32 54 touch ${D}/etc/lsb-release.d/desktop-${PV}-ppc32
51 elif [ "${TARGET_ARCH}" = "powerpc64" ];then 55 elif [ "${TARGET_ARCH}" = "powerpc64" ];then
52 touch ${D}/etc/lsb-release.d/graphics-2.0-ppc64 56 touch ${D}/etc/lsb-release.d/graphics-4.1-noarch
53 touch ${D}/etc/lsb-release.d/graphics-3.2-ppc64 57 touch ${D}/etc/lsb-release.d/graphics-4.1-ppc64
54 touch ${D}/etc/lsb-release.d/graphics-${PV}-ppc64 58 touch ${D}/etc/lsb-release.d/graphics-${PV}-ppc64
55 touch ${D}/etc/lsb-release.d/desktop-${PV}-ppc64 59 touch ${D}/etc/lsb-release.d/desktop-${PV}-ppc64
56 fi 60 fi
57} 61}
58 62
59do_install_append(){ 63do_install_append(){
64 install -d ${D}/etc/core-lsb
65 install -d ${D}/lib/lsb
66 for i in lsb_killproc lsb_log_message lsb_pidofproc lsb_start_daemon
67 do
68 install -m 0755 ${WORKDIR}/${i} ${D}/etc/core-lsb
69 done
70 install -m 0755 ${WORKDIR}/init-functions ${D}/lib/lsb
60 if [ "${TARGET_ARCH}" == "x86_64" ];then 71 if [ "${TARGET_ARCH}" == "x86_64" ];then
61 cd ${D} 72 cd ${D}
62 ln -sf lib lib64 73 ln -sf lib lib64