[poky] creat-lsb-image: LSB test issue on x86_64

Hao, Xudong xudong.hao at intel.com
Thu Mar 17 07:14:46 PDT 2011


I used the latest poky tree with current master: 35260008f4094100ba337776a2ba5a2cece0d2c7.
When I do LSB test on x86_64 arch, both on qemu with lsb image or BSP image, according to creat-lsb-image script, it would download ia64 rpm packages instead of x86_64 packages, even if we installed "ia64" rpm balls to x86_64 system with some work around, the lsb test will fail. 

Then I looked into the package source and find x86_64 packages.

Xiaofeng, how about this changes:

diff --git a/scripts/creat-lsb-image b/scripts/creat-lsb-image
index 3802e2f..3f295ba 100755
--- a/scripts/creat-lsb-image
+++ b/scripts/creat-lsb-image
@@ -75,8 +75,8 @@ if [ ${ARCH} == x86 ];then
    T_ARCH=ia32
     P_ARCH=i486
 elif [ ${ARCH} == x86_64 ];then
-   T_ARCH=ia64
-    P_ARCH=ia64
+   T_ARCH=amd64
+    P_ARCH=x86_64
 else
    P_ARCH=ppc
    T_ARCH=${ARCH}
@@ -92,7 +92,11 @@ mkdir -p lsb-test-suite-${MACHINE_ARCH}
 if [ -d lsb-test-suite-${MACHINE_ARCH} ];then
    cd lsb-test-suite-${MACHINE_ARCH}
    ECHO "Download lsb test suite, it could take some time..."
-    wget -c -t 5  http://ftp.linuxfoundation.org/pub/lsb/bundles/released-4.1.0/dist-testkit/lsb-dist-testkit-4.1.0-5.${T_ARCH}.tar.gz
+   if [ ${ARCH} == x86_64 ];then
+       wget -c -t 5  http://ftp.linuxfoundation.org/pub/lsb/bundles/released-4.1.0/dist-testkit/lsb-dist-testkit-4.1.0-5.${P_ARCH}.tar.gz
+   else
+       wget -c -t 5  http://ftp.linuxfoundation.org/pub/lsb/bundles/released-4.1.0/dist-testkit/lsb-dist-testkit-4.1.0-5.${T_ARCH}.tar.gz
+   fi
     exit_check
    ECHO "Download lsb-xdg-utils-4.0.0-2.${P_ARCH}.rpm"
    wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/lsbdev/released-4.1.0/binary/${T_ARCH}/lsb-xdg-utils-4.0.0-2.${P_ARCH}.rpm


Best Regards,
Xudong Hao





More information about the poky mailing list