All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] ADT: bug fix for nameing and do_patch sequence
@ 2011-03-17  5:21 Liping Ke
  2011-03-17  5:21 ` [PATCH 1/1] " Liping Ke
  2011-03-17  5:36 ` [PATCH 0/1] " Ke, Liping
  0 siblings, 2 replies; 3+ messages in thread
From: Liping Ke @ 2011-03-17  5:21 UTC (permalink / raw)
  To: poky

From: Liping Ke <liping.ke@intel.com>

This patch is for fixing the x86-64 image name bug and also,
do_patch must be down before do_deploy.


Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: lke/seq_fix
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lke/seq_fix

Thanks,
    Liping Ke <liping.ke@intel.com>
---


Liping Ke (1):
  ADT: bug fix for nameing and do_patch sequence

 .../installer/adt-installer/adt_installer          |   13 ++++++++-----
 .../adt-installer/scripts/adt_installer_internal   |    6 +++---
 .../installer/adt-installer_1.0.bb                 |    2 +-
 3 files changed, 12 insertions(+), 9 deletions(-)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] ADT: bug fix for nameing and do_patch sequence
  2011-03-17  5:21 [PATCH 0/1] ADT: bug fix for nameing and do_patch sequence Liping Ke
@ 2011-03-17  5:21 ` Liping Ke
  2011-03-17  5:36 ` [PATCH 0/1] " Ke, Liping
  1 sibling, 0 replies; 3+ messages in thread
From: Liping Ke @ 2011-03-17  5:21 UTC (permalink / raw)
  To: poky

From: Liping Ke <liping.ke@intel.com>

This patch is for fixing the x86-64 image name bug and also,
do_patch must be down before do_deploy.

Signed-off-by: Liping Ke <liping.ke@intel.com>
---
 .../installer/adt-installer/adt_installer          |   13 ++++++++-----
 .../adt-installer/scripts/adt_installer_internal   |    6 +++---
 .../installer/adt-installer_1.0.bb                 |    2 +-
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer
index b1b4970..d7a40c2 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -236,12 +236,15 @@ wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee
 #Need two input params, $1 -- arch_type(arm powerpc x86 mips) $2 rootfs_image_type (a list of sdk sato minimal lsb)
 get_qemu_image()
 {
-  if [ "$1" == "x86" ]; then
-    qemu_kernel="bzImage-qemu$1.bin"
+ 
+  local target=`echo "$1" | sed -e 's/x86_64/x86-64/'`
+
+  if [ "$1" == "x86" ] || [ "$1" == "x86_64" ]; then
+    qemu_kernel="bzImage-qemu$target.bin"
   elif [ "$1" == "mips" ]; then
-    qemu_kernel="vmlinux-qemu$1.bin"
+    qemu_kernel="vmlinux-qemu$target.bin"
   else
-    qemu_kernel="zImage-qemu$1.bin"
+    qemu_kernel="zImage-qemu$target.bin"
   fi
 
   #echo_info "[ADT_INST] Downloading qemu kernel binary: $qemu_kernel"
@@ -250,7 +253,7 @@ get_qemu_image()
   
   for image_type in $select_rootfs; do
     #echo_info "[ADT_INST] Downloading rootfs file: poky-image-$image_type-qemu$1.tar.bz2"
-    filename="poky-image-$image_type-qemu$1.tar.bz2"
+    filename="poky-image-$image_type-qemu$target.tar.bz2"
     download_file qemu$1/$filename
     check_result
   done
diff --git a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
index e1d4e63..65b1b54 100755
--- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
+++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
@@ -170,7 +170,9 @@ fi
 
 echo_info "Installing target sysroot for arch: $1, rootfs type: $target_sysroot_image, location: $target_sysroot"
 
-sysroot_image_name="poky-image-$target_sysroot_image-qemu$1.tar.bz2"
+
+qemu_type=`echo "$1" | sed -e 's/x86_64/x86-64/'`
+sysroot_image_name="poky-image-$target_sysroot_image-qemu$qemu_type.tar.bz2"
     #echo_info "Extracting rootfs: $sysroot_image_name, using pseudo..."
 
 scripts/extract_rootfs $sysroot_image_name $target_sysroot $POKY_NATIVE_SYSROOT $user_inst_type
@@ -179,8 +181,6 @@ check_result
 echo_info "Updating environment script with target sysroot location."
 if [ "$1" == "x86"  ]; then
   env_filename=`ls $INSTALL_FOLDER/environment-setup-i586*`
-elif [ "$1" == "ppc"  ]; then
-  env_filename=`ls $INSTALL_FOLDER/environment-setup-powerpc*`
 else
   env_filename=`ls $INSTALL_FOLDER/environment-setup-$1*`
 fi
diff --git a/meta/recipes-devtools/installer/adt-installer_1.0.bb b/meta/recipes-devtools/installer/adt-installer_1.0.bb
index ff7afe6..7e82c92 100644
--- a/meta/recipes-devtools/installer/adt-installer_1.0.bb
+++ b/meta/recipes-devtools/installer/adt-installer_1.0.bb
@@ -82,4 +82,4 @@ do_package_write_rpm[noexec] = "1"
 do_package_write_deb[noexec] = "1"
 do_poplulate_sysroot[noexec] = "1"
 
-addtask deploy before do_populate_sysroot after do_unpack
+addtask deploy before do_populate_sysroot after do_patch
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] ADT: bug fix for nameing and do_patch sequence
  2011-03-17  5:21 [PATCH 0/1] ADT: bug fix for nameing and do_patch sequence Liping Ke
  2011-03-17  5:21 ` [PATCH 1/1] " Liping Ke
@ 2011-03-17  5:36 ` Ke, Liping
  1 sibling, 0 replies; 3+ messages in thread
From: Ke, Liping @ 2011-03-17  5:36 UTC (permalink / raw)
  To: Ke, Liping, poky@yoctoproject.org

Hi, Saul

Now adt-installer tarball has been tested under both x86 and x86-64 host 
for all target archs (arm, x86, x86_64, arm, ppc). So all naming
problems should have been fixed and tested.

There is a typo in the comment line "down->done". The patch
in the contrib tree was already corrected. So just skip this
typo in the patch notification mail.

Thanks a lot!
criping


> -----Original Message-----
> From: poky-bounces@yoctoproject.org [mailto:poky-
> bounces@yoctoproject.org] On Behalf Of Liping Ke
> Sent: Thursday, March 17, 2011 1:21 PM
> To: poky@yoctoproject.org
> Subject: [poky] [PATCH 0/1] ADT: bug fix for nameing and do_patch
> sequence
> 
> From: Liping Ke <liping.ke@intel.com>
> 
> This patch is for fixing the x86-64 image name bug and also,
> do_patch must be down before do_deploy.
> 
> 
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>   Branch: lke/seq_fix
>   Browse: http://git.pokylinux.org/cgit.cgi/poky-
> contrib/log/?h=lke/seq_fix
> 
> Thanks,
>     Liping Ke <liping.ke@intel.com>
> ---
> 
> 
> Liping Ke (1):
>   ADT: bug fix for nameing and do_patch sequence
> 
>  .../installer/adt-installer/adt_installer          |   13 ++++++++----
> -
>  .../adt-installer/scripts/adt_installer_internal   |    6 +++---
>  .../installer/adt-installer_1.0.bb                 |    2 +-
>  3 files changed, 12 insertions(+), 9 deletions(-)
> 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-17  5:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-17  5:21 [PATCH 0/1] ADT: bug fix for nameing and do_patch sequence Liping Ke
2011-03-17  5:21 ` [PATCH 1/1] " Liping Ke
2011-03-17  5:36 ` [PATCH 0/1] " Ke, Liping

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.