mirror of
git://git.yoctoproject.org/poky
synced 2026-09-30 12:42:13 +00:00
* Remove qt4 test component in test list since qt4 isn't installed to lsb image by default. * Update package directory, server IP address and version. * Move LSB_Test.sh from /usr/bin to /opt/lsb-test. * Add lsb as runtime dependency. (From OE-Core rev: c5a9c64d271aec57959d70a83d0967e00a155908) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
50 lines
1.7 KiB
BlitzBasic
50 lines
1.7 KiB
BlitzBasic
SUMMARY = "Automates Linux Standard Base (LSB) tests"
|
|
HOMEPAGE = "https://wiki.debian.org/LSBInitScripts"
|
|
SECTION = "console/utils"
|
|
LICENSE = "GPLv2"
|
|
PR = "r3"
|
|
|
|
LIC_FILES_CHKSUM = "file://LSB_Test.sh;beginline=3;endline=16;md5=7063bb54b04719df0716b513447f4fc0"
|
|
|
|
SRC_URI = "file://LSB_Test.sh \
|
|
file://packages_list \
|
|
file://session \
|
|
"
|
|
RDEPENDS_${PN} = "lsb rpm"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
do_install() {
|
|
install -d ${D}/opt/lsb-test
|
|
install -m 0755 ${S}/LSB_Test.sh ${D}/opt/lsb-test/LSB_Test.sh
|
|
install -m 0644 ${S}/packages_list ${D}/opt/lsb-test/packages_list
|
|
install -m 0644 ${S}/session ${D}/opt/lsb-test/session
|
|
if [ "${TARGET_ARCH}" = "i586" ] || [ "${TARGET_ARCH}" = "i686" ];then
|
|
sed -i -e 's/lsbarch/ia32/g' -e 's/targetarch/i486/g' ${D}/opt/lsb-test/packages_list
|
|
sed -i -e 's/targetarch/x86/g' ${D}/opt/lsb-test/session
|
|
fi
|
|
if [ "${TARGET_ARCH}" = "x86_64" ];then
|
|
sed -i -e 's/lsbarch/amd64/g' -e 's/targetarch/x86_64/g' ${D}/opt/lsb-test/packages_list
|
|
sed -i -e 's/targetarch/x86-64/g' ${D}/opt/lsb-test/session
|
|
fi
|
|
if [ "${TARGET_ARCH}" = "powerpc" ];then
|
|
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
|
|
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/* \
|
|
"
|