diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-09-10 18:10:50 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-10 22:55:10 +0100 |
commit | 02085d410bf734e833d45293f4d5b06bb9536a60 (patch) | |
tree | 0cf3e38c8e6371bd9ff900df8d78ed21e1a42988 /meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal | |
parent | 8f8cd338faf63f665c2214f0110b712736f8ed5d (diff) | |
download | openembedded-core-02085d410bf734e833d45293f4d5b06bb9536a60.tar.gz |
adt-installer: allow installation of other machines
Currently, adt-installer allows only the installation of qemu target
sysroots.
The changes in this patch do the following:
* add a new setting in adt-installer.conf (YOCTOADT_TARGET_MACHINE) for
each target architecture. For example, for arm we can choose to use a
qemuarm sysroot or a beagleboard sysroot. By default, only the qemu
target sysroots are selected (current behavior);
* change adt_installer scripts to allow installing the correct
meta-environment package for the selected machine;
* remove some left-over commented lines;
* use packagegroup-cross-canadian-${MACHINE} when installing the cross
canadian packages instead of doing it separately for each package;
* change the opkg config files in order to be able to find the
packagegroup package, which is allarch;
[YOCTO #4783]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal')
-rwxr-xr-x | meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal | 27 |
1 files changed, 8 insertions, 19 deletions
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 462199c563..abed90d241 100755 --- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal @@ -121,23 +121,12 @@ for pkg in $BASE_HOSTSDK_PKGNAMES; do check_result done -for native_target_type in $YOCTOADT_TARGETS; do - native_target_type=`echo "$native_target_type" | sed -e 's/x86_64/x86-64/' -e 's/ppc/powerpc/' -e 's/x86$/i586/'` - echo_info "Installing cross toolchain for $native_target_type ..." - echo_info "Installing binutils for $native_target_type ..." - $OPKG_INSTALL_NATIVE_CMD binutils-cross-canadian-$native_target_type &>> $YOCTOADT_INSTALL_LOG_FILE +for target_type in $YOCTOADT_TARGETS; do + machine_var="\$YOCTOADT_TARGET_MACHINE_$target_type" + machine=`eval echo $machine_var` + echo_info "Installing cross canadian packages for $machine ..." + $OPKG_INSTALL_NATIVE_CMD packagegroup-cross-canadian-$machine &>> $YOCTOADT_INSTALL_LOG_FILE check_result - echo_info "Installing gcc for $native_target_type ..." - $OPKG_INSTALL_NATIVE_CMD gcc-cross-canadian-$native_target_type &>> $YOCTOADT_INSTALL_LOG_FILE - check_result - echo_info "Installing gdb for $native_target_type ..." - $OPKG_INSTALL_NATIVE_CMD gdb-cross-canadian-$native_target_type &>> $YOCTOADT_INSTALL_LOG_FILE - check_result - - echo_info "Installing environment file for $native_target_type ..." - $OPKG_INSTALL_NATIVE_CMD meta-environment-$native_target_type &>> $YOCTOADT_INSTALL_LOG_FILE - check_result - done if [ "$YOCTOADT_QEMU" == "Y" ] || [ "$YOCTOADT_QEMU" = "y" ]; then @@ -255,9 +244,9 @@ fi echo_info "Installing target sysroot for arch: $1, rootfs type: $target_sysroot_image, location: $target_sysroot" - -qemu_type=`echo "$1" | sed -e 's/x86_64/x86-64/'` -sysroot_image_name="core-image-$target_sysroot_image-qemu$qemu_type.tar.bz2" +target_machine_var="\$YOCTOADT_TARGET_MACHINE_$1" +target_machine=`eval echo $target_machine_var` +sysroot_image_name="core-image-$target_sysroot_image-$target_machine.tar.bz2" #echo_info "Extracting rootfs: $sysroot_image_name, using pseudo..." $SUDO scripts/extract_rootfs $sysroot_image_name $target_sysroot $OECORE_NATIVE_SYSROOT $user_inst_type |