Bug 3269

Summary: The relocatable SDK should have a system arch check before continuing the installation
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: jessica.zhang, poky.adt.watcher, poky.watcher
Version: 1.3   
Target Milestone: 1.4 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: (Patch review)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Alexandru Georgescu 2012-10-10 12:51:52 UTC
Currently, the standalone SDK for a 64bit machine can be installed on a 32bit machine. By mistake, a user can download the wrong SDK for his architecture, and so his tests will fail.

An architecture check should be done before starting the installation process, so that the user acknowledges the architecture mismatch.

e.g: 

[yocto@yocto-hp1 toolchains]$ uname -m
i686
[yocto@yocto-hp1 toolchains]$ bash poky-eglibc-x86_64-i586-toolchain-gmae-1.3.sh
Enter target directory for SDK (default: /opt/poky/1.3): ./sdk-test
You are about to install the SDK to "/home/yocto/tmp/toolchains/sdk-test". Proceed[Y/n]?y
Extracting SDK...
Comment 1 Laurentiu Palcu 2012-11-01 13:24:53 UTC
Patch sent to the mailing list for review.
Comment 3 Alexandru Georgescu 2012-12-05 13:35:48 UTC
verified.