Skip to contentSkip to conversation

adt-installer changes

PATCH Applied Jessica Zhang 2 participants 3 messages Feb 9, 2011

lore
Share & tools
lore
#0 lore raw

cover adt-installer changes

From: Jessica Zhang <[email protected]>

Make changes to point to public adt repo and adopt its directory layout

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

Thanks,
Jessica Zhang <[email protected]>
---

Jessica Zhang (1):
adt-installer: change to adopt the adt public repo directory layout

 .../installer/adt-installer/adt_installer          |    8 ++++----
 .../installer/adt-installer/adt_installer.conf     |    2 +-
 .../adt-installer/opkg/conf/opkg-sdk-i586.conf     |    7 -------
 .../adt-installer/opkg/conf/opkg-sdk-i686.conf     |    6 ++++++
 .../adt-installer/opkg/conf/opkg-sdk-x86_64.conf   |    5 ++---
 .../adt-installer/scripts/adt_installer_internal   |    3 ++-
 .../installer/adt-installer/scripts/data_define    |    2 +-
 .../installer/adt-installer_1.0.bb                 |    2 +-
 8 files changed, 17 insertions(+), 18 deletions(-)
 delete mode 100644 meta/recipes-devtools/installer/adt-installer/opkg/conf/opkg-sdk-i586.conf
 create mode 100644 meta/recipes-devtools/installer/adt-installer/opkg/conf/opkg-sdk-i686.conf
#1 lore raw

PATCH 1/1 adt-installer: change to adopt the adt public repo directory layout

From: Jessica Zhang <[email protected]>

---
 .../installer/adt-installer/adt_installer          |    8 ++++----
 .../installer/adt-installer/adt_installer.conf     |    2 +-
 .../adt-installer/opkg/conf/opkg-sdk-i586.conf     |    7 -------
 .../adt-installer/opkg/conf/opkg-sdk-i686.conf     |    6 ++++++
 .../adt-installer/opkg/conf/opkg-sdk-x86_64.conf   |    5 ++---
 .../adt-installer/scripts/adt_installer_internal   |    3 ++-
 .../installer/adt-installer/scripts/data_define    |    2 +-
 .../installer/adt-installer_1.0.bb                 |    2 +-
 8 files changed, 17 insertions(+), 18 deletions(-)
 delete mode 100644 meta/recipes-devtools/installer/adt-installer/opkg/conf/opkg-sdk-i586.conf
 create mode 100644 meta/recipes-devtools/installer/adt-installer/opkg/conf/opkg-sdk-i686.conf
meta/recipes-devtools/installer/adt-installer/adt_installer +4 -4
index d47be41..1f481de 100755
@@ -237,20 +237,20 @@ get_qemu_image()
 {
   if [ "$1" == "x86" ]; then
     qemu_kernel="bzImage-qemu$1.bin"
-  elif [ "$1" == "arm" ]; then
-    qemu_kernel="zImage-qemu$1.bin"
+  elif [ "$1" == "mips" ]; then
+    qemu_kernel="vmlinux-qemu$1.bin"
   else
     qemu_kernel="zImage-qemu$1.bin"
   fi
 
   #echo_info "[ADT_INST] Downloading qemu kernel binary: $qemu_kernel"
-  download_file $qemu_kernel
+  download_file qemu$1/$qemu_kernel
   check_result
   
   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"
-    download_file $filename
+    download_file qemu$1/$filename
     check_result
   done
 }
meta/recipes-devtools/installer/adt-installer/adt_installer.conf +1 -1
index a31e559..db602f6 100644
@@ -23,7 +23,7 @@
 
 # Your yocto distro repository, this should include IPKG based packages and root filesystem files where the installation is based on
 
-YOCTOADT_IPKG_REPO="http://"
+YOCTOADT_IPKG_REPO="http://adtrepo.yoctoproject.org/1.0/rootfs"
 
 # The following are for system wide setup
 # Target architectures that you want to setup host cross dev environment for
meta/recipes-devtools/installer/adt-installer/opkg/conf/opkg-sdk-i586.conf deleted +0 -7
deleted file mode 100644
index 36e585c..0000000
@@ -1,7 +0,0 @@
-arch all 1
-arch any 6
-arch noarch 11
-arch i586-nativesdk 16
-src oe http://
-src oe-all http://
-src oe-i586-nativesdk http://
meta/recipes-devtools/installer/adt-installer/opkg/conf/opkg-sdk-i686.conf new file +6 -0
new file mode 100644
index 0000000..1d8c89a
@@ -0,0 +1,6 @@
+arch all 1
+arch any 6
+arch noarch 11
+arch i686-nativesdk 16
+src yp http://adtrepo.yoctoproject.org/1.0/adt-ipk
+src yp-i686-nativesdk http://adtrepo.yoctoproject.org/1.0/adt-ipk/i686-nativesdk
meta/recipes-devtools/installer/adt-installer/opkg/conf/opkg-sdk-x86_64.conf +2 -3
index 3ab4930..6b14f98 100644
@@ -2,6 +2,5 @@ arch all 1
 arch any 6
 arch noarch 11
 arch x86_64-nativesdk 16
-src oe http://
-src oe-all http://
-src oe-x86_64-nativesdk http://
+src yp http://adtrepo.yoctoproject.org/1.0/adt-ipk
+src yp-x86_64-nativesdk http://adtrepo.yoctoproject.org/1.0/adt-ipk/x86_64-nativesdk
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +2 -1
index 78e5c97..9653284 100755
@@ -29,7 +29,8 @@ parse_config()
   case $INST_ARCH in 
   i[3-6]86)
     OPKG_CONFIG_FILE=$YOCTOADT_OPKG_CONF_FILE_32
-    POKY_NATIVE_SYSROOT="$INSTALL_FOLDER/sysroots/i586-pokysdk-linux/"
+    #POKY_NATIVE_SYSROOT="$INSTALL_FOLDER/sysroots/i586-pokysdk-linux/"
+    POKY_NATIVE_SYSROOT="$INSTALL_FOLDER/sysroots/$INST_ARCH-pokysdk-linux/"
     ;;
   x86_64)
     OPKG_CONFIG_FILE=$YOCTOADT_OPKG_CONF_FILE_64
meta/recipes-devtools/installer/adt-installer/scripts/data_define +1 -1
index e975077..2895c4f 100644
@@ -35,6 +35,6 @@ YOCTOADT_SUPPORTED_ROOTFS="minimal sato sdk lsb"
 YOCTOADT_SUPPORTED_TARGETS="x86 x86_64 arm powerpc mips"
 # Different host (32 bit or 64 bit) will have different opkg
 # configuration files
-YOCTOADT_OPKG_CONF_FILE_32="./opkg/conf/opkg-sdk-i586.conf"
+YOCTOADT_OPKG_CONF_FILE_32="./opkg/conf/opkg-sdk-i686.conf"
 YOCTOADT_OPKG_CONF_FILE_64="./opkg/conf/opkg-sdk-x86_64.conf"
 INSTALL_FOLDER=/opt/poky/$YOCTOADT_VERSION
meta/recipes-devtools/installer/adt-installer_1.0.bb +1 -1
index 226e375..e865971 100644
@@ -47,7 +47,7 @@ SRC_URI = "http://opkg.googlecode.com/files/opkg-0.1.8.tar.gz \
            file://scripts/extract_rootfs \
            file://adt_installer.conf \
            file://opkg/conf/opkg-sdk-x86_64.conf \
-           file://opkg/conf/opkg-sdk-i586.conf \
+           file://opkg/conf/opkg-sdk-i686.conf \
 	  "
 SRC_URI[md5sum] = "c714ce0e4863bf1315e3b6913ffe3299"
 SRC_URI[sha256sum] = "ff94bf30bd662d49c4b5057e3a0818d062731adaa555d59abd677ec32a3c1c60"
Signature · 1 line
1.7.0.4