Bug 534

Summary: Target dropdown is not updated automatically and contains empty string as default
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Anna Dushistova <anna.dushistova>
Component: eclipse-pluginAssignee: Jessica <jessica.zhang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: kevin.tian, lianhao.lu, liping.ke, sgw, yp.ep.watcher, yp.watcher
Version: 1.0   
Target Milestone: 1.0 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Anna Dushistova 2010-11-11 05:56:02 UTC
In Yocto SDK preference page, with the default settings, target is empty, though it should be the first one from those contained in SDK.
Comment 1 Jessica 2010-11-11 06:05:21 UTC
Hi Anna,

We leave it's empty on purpose with 2 reasons: 1. user has not setup their SDK, we build the target list based on the user SDK location setup, so there's the possibility it's not setup yet, so the list will be empty. 2. we support 4 arches: x86, arm, ppc, mips, we don't want to play any preference against any of them, so by default, we leave the entry empty to let the use explicit pick one if there's a list...
Comment 2 Anna Dushistova 2010-11-11 07:46:46 UTC
Jessica,
I did set up my SDK, why is it still empty as default?
I installed the arm one, I assume that since it's the only one that I have at the moment, it should show up automatically.
Comment 3 liping Ke 2010-11-11 17:20:11 UTC
Hi, Anna
The logic of showing the available arch internal is below:
For SDK mode
1) select SDK
2) the folder should be /opt/poky
3) Please check your /opt/poky, can you see some environment script file, for example, if it is arm, it should be environment-setup-armv5te-poky-linux-gnueabi.

If 3) is true, in the target combo box, I will show one arch armv5te-poky-linux-gnueabi.

If you installed several tarball, more architecture will be shown, such as if there's environment-setup-i586-poky-linux, then another item i586-poky-linux will be shown in the target box.

Can you help to check the existence of environment setup file under your /opt/poky directory?

Thanks a lot!
criping

(In reply to comment #2)
> Jessica,
> I did set up my SDK, why is it still empty as default?
> I installed the arm one, I assume that since it's the only one that I have at
> the moment, it should show up automatically.
Comment 4 Jessica 2010-11-11 17:54:34 UTC
Liping,

What Anna is saying is that since she only has one arch (arm), it should be auto picked.  Only once there's a list, we default to empty...  I kind of agree that's one smart logic we need to have in our code...
Comment 5 liping Ke 2010-11-11 17:56:03 UTC
Oh, that's reasonable.

I will fix the problem when I have time.

Thanks& Regards,
criping

(In reply to comment #4)
> Liping,
> 
> What Anna is saying is that since she only has one arch (arm), it should be
> auto picked.  Only once there's a list, we default to empty...  I kind of agree
> that's one smart logic we need to have in our code...
Comment 6 Jessica 2010-11-12 13:00:48 UTC
I fixed the issue in commit 0cfe036