* [PATCH 0/1] Modify script "creat-lsb-image" to create lsb-image which can be used by lsb test suite on hardware platform
@ 2011-03-18 9:04 Xiaofeng Yan
2011-03-18 9:04 ` [PATCH 1/1] creat-lsb-image: Modify some contents to support hardware platfrom Xiaofeng Yan
0 siblings, 1 reply; 3+ messages in thread
From: Xiaofeng Yan @ 2011-03-18 9:04 UTC (permalink / raw)
To: poky
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
The previous version can only create a useable lsb-image for qemu. So I fix it.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: xiaofeng/distro
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/distro
Thanks,
Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
Xiaofeng Yan (1):
creat-lsb-image: Modify some contents to support hardware platfrom
scripts/creat-lsb-image | 95 ++++++++++++++++++++++------------------------
1 files changed, 45 insertions(+), 50 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] creat-lsb-image: Modify some contents to support hardware platfrom
2011-03-18 9:04 [PATCH 0/1] Modify script "creat-lsb-image" to create lsb-image which can be used by lsb test suite on hardware platform Xiaofeng Yan
@ 2011-03-18 9:04 ` Xiaofeng Yan
2011-03-18 9:51 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Xiaofeng Yan @ 2011-03-18 9:04 UTC (permalink / raw)
To: poky
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
The previous version can't create a lsb-image for hardware platfrom.
So I fix bugs and it can make a lsb image to do lsb test now.
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
scripts/creat-lsb-image | 95 ++++++++++++++++++++++------------------------
1 files changed, 45 insertions(+), 50 deletions(-)
diff --git a/scripts/creat-lsb-image b/scripts/creat-lsb-image
index 3802e2f..647fc88 100755
--- a/scripts/creat-lsb-image
+++ b/scripts/creat-lsb-image
@@ -20,10 +20,10 @@ red='\E[31;40m'
green='\E[32;40m'
USER=`whoami`
ARCH=$1
-MACHINE_ARCH=` bitbake -e | grep ^MACHINE_ARCH | cut -d '=' -f2 | cut -d '"' -f2`
+PACKAGE=$2
+MACHINE_ARCH=` bitbake -e | grep ^MACHINE_ARCH= | cut -d '=' -f2 | cut -d '"' -f2`
IMAGE_PATH=` bitbake -e | grep ^POKYBASE | cut -d '=' -f2 | cut -d '"' -f2`/build/tmp/deploy/images/
-
ECHO()
{
echo -e "${green}$@"
@@ -39,14 +39,14 @@ exit_check()
usage()
{
- ECHO "${red}usage:you should input one of the next commmands according to detailed target platform:"
- ECHO "creat-lsb-image x86"
- ECHO "creat-lsb-image x86_64"
- ECHO "creat-lsb-image ppc32"
+ ECHO "${red}usage:you should input one of the next commmands according to concrete target platform, Pease input concrete package to instead of \"poky-image-lsb-qemux86-20110317030443.rootfs.tar.bz2\""
+ ECHO "creat-lsb-image x86 poky-image-lsb-qemux86-20110317030443.rootfs.tar.bz2"
+ ECHO "creat-lsb-image x86_64 poky-image-lsb-qemux86-20110317030443.rootfs.tar.bz2"
+ ECHO "creat-lsb-image ppc32 poky-image-lsb-qemux86-20110317030443.rootfs.tar.bz2"
}
#There should be a patameter to get machine type
-if [ $# -ne 1 ]; then
+if [ $# -ne 2 ]; then
usage
exit 1
fi
@@ -59,70 +59,65 @@ fi
ECHO "Enter directory $IMAGE_PATH"
cd $IMAGE_PATH
-#get architecture
-PN=`find . -name poky-image-lsb-${MACHINE_ARCH}\*.rootfs.tar.bz2 -type f | awk -F- 'BEGIN{ max=0;} {if( NR!=0 && $5>max ) max=$5 }END{ printf "%d" ,max ;}'`
-if [ "XPN" == "X" ];then
- ECHO "${red}Don't find lsb image on platform, Please run \"poky-image-lsb\" to generate lsb image"
- exit 1
+if [ ! -f ${2} ]; then
+ ECHO "${red}${2} don't be found in the directory ${IMAGE_PATH},so"
+ ECHO "${red}Please copy \"${2}\" to directory \"${IMAGE_PATH}\""
+ exit 1
fi
-if [ $PN -eq 0 ];then
- ECHO "${red}Can't ${MACHINE_ARCH} rootfs.tar.gz,Please run poky-image-lsb to get lsb image"
- exit 1
-fi
#set varible ARCH
if [ ${ARCH} == x86 ];then
- T_ARCH=ia32
+ T_ARCH=ia32
P_ARCH=i486
elif [ ${ARCH} == x86_64 ];then
- T_ARCH=ia64
+ T_ARCH=ia64
P_ARCH=ia64
else
- P_ARCH=ppc
- T_ARCH=${ARCH}
+ P_ARCH=ppc
+ T_ARCH=${ARCH}
fi
#umount lsbtmp
if [ -d lsbtmp ];then
- sudo umount lsbtmp
+ sudo umount lsbtmp
fi
#download lsb test suite
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..."
+ 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
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
+ 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
exit_check
- ECHO "Downlocad lsb-apache-2.2.8-2.lsb4.${P_ARCH}.rpm"
- wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-apache-2.2.14-3.lsb4.${P_ARCH}.rpm
+ ECHO "Downlocad lsb-apache-2.2.8-2.lsb4.${P_ARCH}.rpm"
+ wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-apache-2.2.14-3.lsb4.${P_ARCH}.rpm
exit_check
- ECHO "Downlocad lsb-tcl-8.5.1-2.lsb4.${P_ARCH}.rpm"
- wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-tcl-8.5.7-6.lsb4.${P_ARCH}.rpm
+ ECHO "Downlocad lsb-tcl-8.5.1-2.lsb4.${P_ARCH}.rpm"
+ wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-tcl-8.5.7-6.lsb4.${P_ARCH}.rpm
exit_check
- ECHO "Downlocad lsb-expect-5.43.0-7.lsb4.${P_ARCH}.rpm"
- wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-expect-5.43.0-11.lsb4.${P_ARCH}.rpm
+ ECHO "Downlocad lsb-expect-5.43.0-7.lsb4.${P_ARCH}.rpm"
+ wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-expect-5.43.0-11.lsb4.${P_ARCH}.rpm
exit_check
- ECHO "Downlocad lsb-groff-1.19.2-4.lsb4.${P_ARCH}.rpm"
- wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-groff-1.20.1-5.lsb4.${P_ARCH}.rpm
+ ECHO "Downlocad lsb-groff-1.19.2-4.lsb4.${P_ARCH}.rpm"
+ wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-groff-1.20.1-5.lsb4.${P_ARCH}.rpm
exit_check
- ECHO "Downlocad lsb-raptor-1.4.16-2.lsb4.${P_ARCH}.rpm"
- wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-raptor-1.4.19-3.lsb4.${P_ARCH}.rpm
+ ECHO "Downlocad lsb-raptor-1.4.16-2.lsb4.${P_ARCH}.rpm"
+ wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-raptor-1.4.19-3.lsb4.${P_ARCH}.rpm
exit_check
- ECHO "Downlocad lsb-xpdf-1.01-7.lsb4.${P_ARCH}.rpm"
- wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-xpdf-1.01-10.lsb4.${P_ARCH}.rpm
+ ECHO "Downlocad lsb-xpdf-1.01-7.lsb4.${P_ARCH}.rpm"
+ wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-xpdf-1.01-10.lsb4.${P_ARCH}.rpm
exit_check
- ECHO "Downlocad lsb-samba-3.0.28a-3.lsb4.${P_ARCH}.rpm"
- wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-samba-3.4.3-5.lsb4.${P_ARCH}.rpm
+ ECHO "Downlocad lsb-samba-3.0.28a-3.lsb4.${P_ARCH}.rpm"
+ wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-samba-3.4.3-5.lsb4.${P_ARCH}.rpm
exit_check
- ECHO "Downlocad lsb-rsync-3.0.0-2.lsb4.${P_ARCH}.rpm"
- wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-rsync-3.0.6-3.lsb4.${P_ARCH}.rpm
+ ECHO "Downlocad lsb-rsync-3.0.0-2.lsb4.${P_ARCH}.rpm"
+ wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-rsync-3.0.6-3.lsb4.${P_ARCH}.rpm
exit_check
else
- ECHO "Can't find lsb test suite for ${MACHINE_ARCH}"
+ ECHO "Can't find lsb test suite for ${MACHINE_ARCH}"
fi
cd ..
if [ -L poky-image-lsb-${MACHINE_ARCH}.ext3 ];then
@@ -132,11 +127,11 @@ fi
#creat lsb image
if [ -f poky-image-lsb-${MACHINE_ARCH}-test.ext3 ];then
- if [ -d lsbtmp ];then
- sudo umount lsbtmp
- fi
- ECHO "Remove old lsb image..."
- /bin/rm poky-image-lsb-${MACHINE_ARCH}-test.ext3
+ if [ -d lsbtmp ];then
+ sudo umount lsbtmp
+ fi
+ ECHO "Remove old lsb image..."
+ /bin/rm poky-image-lsb-${MACHINE_ARCH}-test.ext3
fi
ECHO "creat a big ext3 file for lsb image with 5G..."
dd if=/dev/zero of=poky-image-lsb-${MACHINE_ARCH}-test.ext3 bs=1M count=5000
@@ -148,7 +143,7 @@ tune2fs -j poky-image-lsb-${MACHINE_ARCH}-test.ext3
ECHO "get a lsb image with lsb test suite"
if [ ! -d lsbtmp ];then
- mkdir lsbtmp
+ mkdir lsbtmp
fi
@@ -157,7 +152,7 @@ sudo mount -o loop poky-image-lsb-${MACHINE_ARCH}-test.ext3 lsbtmp
exit_check
ECHO " ->Install file system..."
-sudo tar jxf poky-image-lsb-${MACHINE_ARCH}-${PN}.rootfs.tar.bz2 -C lsbtmp
+sudo tar jxf ${PACKAGE} -C lsbtmp
exit_check
ECHO " ->Install lsb test suite..."
@@ -171,7 +166,7 @@ cd ..
if [ -f modules-*-${MACHINE_ARCH}.tgz ];then
ECHO " ->Install moules of driver..."
- sudo tar zxf modules-*-${MACHINE_ARCH}.tgz -C lsbtmp/
+ sudo tar zxf modules-*-${MACHINE_ARCH}.tgz -C lsbtmp/
fi
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] creat-lsb-image: Modify some contents to support hardware platfrom
2011-03-18 9:04 ` [PATCH 1/1] creat-lsb-image: Modify some contents to support hardware platfrom Xiaofeng Yan
@ 2011-03-18 9:51 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-03-18 9:51 UTC (permalink / raw)
To: Xiaofeng Yan; +Cc: poky
On Fri, 2011-03-18 at 17:04 +0800, Xiaofeng Yan wrote:
> From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
>
> The previous version can't create a lsb-image for hardware platfrom.
> So I fix bugs and it can make a lsb image to do lsb test now.
>
> Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
> ---
> scripts/creat-lsb-image | 95 ++++++++++++++++++++++------------------------
> 1 files changed, 45 insertions(+), 50 deletions(-)
>
> diff --git a/scripts/creat-lsb-image b/scripts/creat-lsb-image
> index 3802e2f..647fc88 100755
> --- a/scripts/creat-lsb-image
> +++ b/scripts/creat-lsb-image
> @@ -20,10 +20,10 @@ red='\E[31;40m'
> green='\E[32;40m'
> USER=`whoami`
> ARCH=$1
> -MACHINE_ARCH=` bitbake -e | grep ^MACHINE_ARCH | cut -d '=' -f2 | cut -d '"' -f2`
> +PACKAGE=$2
> +MACHINE_ARCH=` bitbake -e | grep ^MACHINE_ARCH= | cut -d '=' -f2 | cut -d '"' -f2`
> IMAGE_PATH=` bitbake -e | grep ^POKYBASE | cut -d '=' -f2 | cut -d '"' -f2`/build/tmp/deploy/images/
Could you please split this patch into two patches, one making the
whitespace changes and the other with the code changes.
At present its extremely difficult to see what the code changes were.
Thanks,
Richard
> -
> ECHO()
> {
> echo -e "${green}$@"
> @@ -39,14 +39,14 @@ exit_check()
>
> usage()
> {
> - ECHO "${red}usage:you should input one of the next commmands according to detailed target platform:"
> - ECHO "creat-lsb-image x86"
> - ECHO "creat-lsb-image x86_64"
> - ECHO "creat-lsb-image ppc32"
> + ECHO "${red}usage:you should input one of the next commmands according to concrete target platform, Pease input concrete package to instead of \"poky-image-lsb-qemux86-20110317030443.rootfs.tar.bz2\""
> + ECHO "creat-lsb-image x86 poky-image-lsb-qemux86-20110317030443.rootfs.tar.bz2"
> + ECHO "creat-lsb-image x86_64 poky-image-lsb-qemux86-20110317030443.rootfs.tar.bz2"
> + ECHO "creat-lsb-image ppc32 poky-image-lsb-qemux86-20110317030443.rootfs.tar.bz2"
> }
>
> #There should be a patameter to get machine type
> -if [ $# -ne 1 ]; then
> +if [ $# -ne 2 ]; then
> usage
> exit 1
> fi
> @@ -59,70 +59,65 @@ fi
> ECHO "Enter directory $IMAGE_PATH"
> cd $IMAGE_PATH
>
> -#get architecture
> -PN=`find . -name poky-image-lsb-${MACHINE_ARCH}\*.rootfs.tar.bz2 -type f | awk -F- 'BEGIN{ max=0;} {if( NR!=0 && $5>max ) max=$5 }END{ printf "%d" ,max ;}'`
> -if [ "XPN" == "X" ];then
> - ECHO "${red}Don't find lsb image on platform, Please run \"poky-image-lsb\" to generate lsb image"
> - exit 1
> +if [ ! -f ${2} ]; then
> + ECHO "${red}${2} don't be found in the directory ${IMAGE_PATH},so"
> + ECHO "${red}Please copy \"${2}\" to directory \"${IMAGE_PATH}\""
> + exit 1
> fi
>
> -if [ $PN -eq 0 ];then
> - ECHO "${red}Can't ${MACHINE_ARCH} rootfs.tar.gz,Please run poky-image-lsb to get lsb image"
> - exit 1
> -fi
> #set varible ARCH
> if [ ${ARCH} == x86 ];then
> - T_ARCH=ia32
> + T_ARCH=ia32
> P_ARCH=i486
> elif [ ${ARCH} == x86_64 ];then
> - T_ARCH=ia64
> + T_ARCH=ia64
> P_ARCH=ia64
> else
> - P_ARCH=ppc
> - T_ARCH=${ARCH}
> + P_ARCH=ppc
> + T_ARCH=${ARCH}
> fi
>
> #umount lsbtmp
> if [ -d lsbtmp ];then
> - sudo umount lsbtmp
> + sudo umount lsbtmp
> fi
>
> #download lsb test suite
> 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..."
> + 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
> 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
> + 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
> exit_check
> - ECHO "Downlocad lsb-apache-2.2.8-2.lsb4.${P_ARCH}.rpm"
> - wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-apache-2.2.14-3.lsb4.${P_ARCH}.rpm
> + ECHO "Downlocad lsb-apache-2.2.8-2.lsb4.${P_ARCH}.rpm"
> + wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-apache-2.2.14-3.lsb4.${P_ARCH}.rpm
> exit_check
> - ECHO "Downlocad lsb-tcl-8.5.1-2.lsb4.${P_ARCH}.rpm"
> - wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-tcl-8.5.7-6.lsb4.${P_ARCH}.rpm
> + ECHO "Downlocad lsb-tcl-8.5.1-2.lsb4.${P_ARCH}.rpm"
> + wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-tcl-8.5.7-6.lsb4.${P_ARCH}.rpm
> exit_check
> - ECHO "Downlocad lsb-expect-5.43.0-7.lsb4.${P_ARCH}.rpm"
> - wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-expect-5.43.0-11.lsb4.${P_ARCH}.rpm
> + ECHO "Downlocad lsb-expect-5.43.0-7.lsb4.${P_ARCH}.rpm"
> + wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-expect-5.43.0-11.lsb4.${P_ARCH}.rpm
> exit_check
> - ECHO "Downlocad lsb-groff-1.19.2-4.lsb4.${P_ARCH}.rpm"
> - wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-groff-1.20.1-5.lsb4.${P_ARCH}.rpm
> + ECHO "Downlocad lsb-groff-1.19.2-4.lsb4.${P_ARCH}.rpm"
> + wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-groff-1.20.1-5.lsb4.${P_ARCH}.rpm
> exit_check
> - ECHO "Downlocad lsb-raptor-1.4.16-2.lsb4.${P_ARCH}.rpm"
> - wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-raptor-1.4.19-3.lsb4.${P_ARCH}.rpm
> + ECHO "Downlocad lsb-raptor-1.4.16-2.lsb4.${P_ARCH}.rpm"
> + wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-raptor-1.4.19-3.lsb4.${P_ARCH}.rpm
> exit_check
> - ECHO "Downlocad lsb-xpdf-1.01-7.lsb4.${P_ARCH}.rpm"
> - wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-xpdf-1.01-10.lsb4.${P_ARCH}.rpm
> + ECHO "Downlocad lsb-xpdf-1.01-7.lsb4.${P_ARCH}.rpm"
> + wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-xpdf-1.01-10.lsb4.${P_ARCH}.rpm
> exit_check
> - ECHO "Downlocad lsb-samba-3.0.28a-3.lsb4.${P_ARCH}.rpm"
> - wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-samba-3.4.3-5.lsb4.${P_ARCH}.rpm
> + ECHO "Downlocad lsb-samba-3.0.28a-3.lsb4.${P_ARCH}.rpm"
> + wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-samba-3.4.3-5.lsb4.${P_ARCH}.rpm
> exit_check
> - ECHO "Downlocad lsb-rsync-3.0.0-2.lsb4.${P_ARCH}.rpm"
> - wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-rsync-3.0.6-3.lsb4.${P_ARCH}.rpm
> + ECHO "Downlocad lsb-rsync-3.0.0-2.lsb4.${P_ARCH}.rpm"
> + wget -c -t 5 http://ftp.linux-foundation.org/pub/lsb/app-battery/released-4.1.0/${T_ARCH}/lsb-rsync-3.0.6-3.lsb4.${P_ARCH}.rpm
> exit_check
> else
> - ECHO "Can't find lsb test suite for ${MACHINE_ARCH}"
> + ECHO "Can't find lsb test suite for ${MACHINE_ARCH}"
> fi
> cd ..
> if [ -L poky-image-lsb-${MACHINE_ARCH}.ext3 ];then
> @@ -132,11 +127,11 @@ fi
>
> #creat lsb image
> if [ -f poky-image-lsb-${MACHINE_ARCH}-test.ext3 ];then
> - if [ -d lsbtmp ];then
> - sudo umount lsbtmp
> - fi
> - ECHO "Remove old lsb image..."
> - /bin/rm poky-image-lsb-${MACHINE_ARCH}-test.ext3
> + if [ -d lsbtmp ];then
> + sudo umount lsbtmp
> + fi
> + ECHO "Remove old lsb image..."
> + /bin/rm poky-image-lsb-${MACHINE_ARCH}-test.ext3
> fi
> ECHO "creat a big ext3 file for lsb image with 5G..."
> dd if=/dev/zero of=poky-image-lsb-${MACHINE_ARCH}-test.ext3 bs=1M count=5000
> @@ -148,7 +143,7 @@ tune2fs -j poky-image-lsb-${MACHINE_ARCH}-test.ext3
>
> ECHO "get a lsb image with lsb test suite"
> if [ ! -d lsbtmp ];then
> - mkdir lsbtmp
> + mkdir lsbtmp
> fi
>
>
> @@ -157,7 +152,7 @@ sudo mount -o loop poky-image-lsb-${MACHINE_ARCH}-test.ext3 lsbtmp
> exit_check
>
> ECHO " ->Install file system..."
> -sudo tar jxf poky-image-lsb-${MACHINE_ARCH}-${PN}.rootfs.tar.bz2 -C lsbtmp
> +sudo tar jxf ${PACKAGE} -C lsbtmp
> exit_check
>
> ECHO " ->Install lsb test suite..."
> @@ -171,7 +166,7 @@ cd ..
>
> if [ -f modules-*-${MACHINE_ARCH}.tgz ];then
> ECHO " ->Install moules of driver..."
> - sudo tar zxf modules-*-${MACHINE_ARCH}.tgz -C lsbtmp/
> + sudo tar zxf modules-*-${MACHINE_ARCH}.tgz -C lsbtmp/
> fi
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-18 9:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-18 9:04 [PATCH 0/1] Modify script "creat-lsb-image" to create lsb-image which can be used by lsb test suite on hardware platform Xiaofeng Yan
2011-03-18 9:04 ` [PATCH 1/1] creat-lsb-image: Modify some contents to support hardware platfrom Xiaofeng Yan
2011-03-18 9:51 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.