summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2013-12-12 10:36:28 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-18 11:21:25 +0000
commit0957eb6cac65c94a7ac80815c06f0ea75f0fed4e (patch)
tree5a43c18b2e435fad2ac55d67a14d6b68e53d8b88
parentb35283cd8cd05916c1893639f2c5353b237b6b03 (diff)
downloadpoky-0957eb6cac65c94a7ac80815c06f0ea75f0fed4e.tar.gz
lsbtest: add ppc64 support
LSB supports to test on PPC64 target, so update lsbtest recipe and test scripts to enable PPC64 support. (From OE-Core rev: 59905859064d4c7a09e04115daa4a93939a6dafc) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/lsb/lsbtest/LSB_Test.sh2
-rw-r--r--meta/recipes-extended/lsb/lsbtest_1.0.bb12
2 files changed, 13 insertions, 1 deletions
diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index 37ce3f150a..12f00547ae 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -29,7 +29,7 @@ EOF
29fi 29fi
30 30
31ARCH=`uname -m` 31ARCH=`uname -m`
32if [ ${ARCH} != "i686" ] && [ ${ARCH} != "x86_64" ] && [ ${ARCH} != "ppc" ] 32if [ ${ARCH} != "i686" ] && [ ${ARCH} != "x86_64" ] && [ ${ARCH} != "ppc" ] && [ ${ARCH} != "ppc64" ]
33then 33then
34 echo "Error: Unsupported architecture" 34 echo "Error: Unsupported architecture"
35 exit 1 35 exit 1
diff --git a/meta/recipes-extended/lsb/lsbtest_1.0.bb b/meta/recipes-extended/lsb/lsbtest_1.0.bb
index 8973e094e5..520c1e79bd 100644
--- a/meta/recipes-extended/lsb/lsbtest_1.0.bb
+++ b/meta/recipes-extended/lsb/lsbtest_1.0.bb
@@ -31,6 +31,18 @@ do_install() {
31 sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list 31 sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list
32 sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session 32 sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session
33 fi 33 fi
34
35 # For a ppc64 target. the default userspace is 32b.
36 # Therefore, only change the lsbarch and targetarch
37 # in the package_list when MLIB=lib64 is being used.
38 # Otherwise, by default, the ppc32 LSB packages
39 # will be downloaded by LSB_Test.sh
40 if [ "${TARGET_ARCH}" == "powerpc64" ];then
41 if [ "${PN}" != "${BPN}" ];then
42 sed -i -e 's/lsbarch/ppc64/g' -e 's/targetarch/ppc64/g' ${D}/opt/lsb-test/packages_list
43 sed -i -e 's/targetarch/PPC64/g' ${D}/opt/lsb-test/session
44 fi
45 fi
34} 46}
35 47
36FILES_${PN} += "/opt/lsb-test/* \ 48FILES_${PN} += "/opt/lsb-test/* \