Bug 5727

Summary: ADT install error when having more SYSROOT targets specified than YOCTOADT_TARGETS
Product: [Yocto Project Subprojects] ADT Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: adtAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.adt.watcher, poky.watcher, richard.purdie
Version: 1.6   
Target Milestone: 1.6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
adt_installer.conf none

Description Alexandru Georgescu 2014-01-16 08:27:53 UTC
adt_installer: http://autobuilder.yoctoproject.org/pub/releases/1.6_M2.rc1/adt-installer-QA/
poky: e4c23f7bcb79072ea6028fbdf8f3f0dc17a63371
HOST: Ubuntu 13.10


STEPS TO REPRODUCE
1. Download and extract ADT
2. Open the adt_installer.conf file. Modify YOCTOADT_TARGETS to: "x86"
3. Leave the YOCTOADT_ROOTFS_arm, YOCTOADT_TARGET_SYSROOT_IMAGE_arm, YOCTOADT_TARGET_MACHINE_arm, YOCTOADT_TARGET_SYSROOT_LOC_arm, YOCTOADT_ROOTFS_x86, YOCTOADT_TARGET_SYSROOT_IMAGE_x86, YOCTOADT_TARGET_MACHINE_x86, YOCTOADT_TARGET_SYSROOT_LOC_x86 variables set as they were before. (attached, the conf file)

4. Proceed with ADT installation


EXPECTED RESULTS:
4. Only ADT for arm is installed.


ACTUAL RESULTS:
4. ADT tries to install the ARM toolchain as well, but since "arm" is not added to YOCTOADT_TARGETS, the environment script for arm is not found therefore the below error appears. ADT should install only the tooclhain/sysroots that are mentioned in the YOCTOADT_TARGETS variable.

Target sysroot location: /home/ubu/test-yocto/qemuarm, already exists! If you continue installation, this folder will be re-created.
[ADT_INST] Do you want to continue installation? Please enter Y/N:
y
Creating directory /home/ubu/test-yocto/qemuarm...
Extracting rootfs: core-image-sato-sdk-qemuarm.tar.bz2, using pseudo...
Updating environment script with target sysroot location.
ls: cannot access /media/ubu/big-ubu/work/m2-rc1/toolchain/adt-installer/sdk2/environment-setup-arm*: No such file or directory
[ADT_INST] Error: Failed to find environment script for arch: arm
ubu@ubu-v:/media/ubu/big-ubu/work/m2-rc1/toolchain/adt-installer$
Comment 1 Alexandru Georgescu 2014-01-16 08:28:32 UTC
Created attachment 1734 [details]
adt_installer.conf
Comment 3 Alexandru Georgescu 2014-02-10 11:43:41 UTC
verified.
Comment 4 Alexandru Georgescu 2014-02-10 11:44:17 UTC
.