mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
@@ -29,7 +29,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
ARCH=`uname -m`
|
ARCH=`uname -m`
|
||||||
if [ ${ARCH} != "i686" ] && [ ${ARCH} != "x86_64" ] && [ ${ARCH} != "ppc" ]
|
if [ ${ARCH} != "i686" ] && [ ${ARCH} != "x86_64" ] && [ ${ARCH} != "ppc" ] && [ ${ARCH} != "ppc64" ]
|
||||||
then
|
then
|
||||||
echo "Error: Unsupported architecture"
|
echo "Error: Unsupported architecture"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -31,6 +31,18 @@ do_install() {
|
|||||||
sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list
|
sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list
|
||||||
sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session
|
sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# For a ppc64 target. the default userspace is 32b.
|
||||||
|
# Therefore, only change the lsbarch and targetarch
|
||||||
|
# in the package_list when MLIB=lib64 is being used.
|
||||||
|
# Otherwise, by default, the ppc32 LSB packages
|
||||||
|
# will be downloaded by LSB_Test.sh
|
||||||
|
if [ "${TARGET_ARCH}" == "powerpc64" ];then
|
||||||
|
if [ "${PN}" != "${BPN}" ];then
|
||||||
|
sed -i -e 's/lsbarch/ppc64/g' -e 's/targetarch/ppc64/g' ${D}/opt/lsb-test/packages_list
|
||||||
|
sed -i -e 's/targetarch/PPC64/g' ${D}/opt/lsb-test/session
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "/opt/lsb-test/* \
|
FILES_${PN} += "/opt/lsb-test/* \
|
||||||
|
|||||||
Reference in New Issue
Block a user