<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>534</bug_id>
          
          <creation_ts>2010-11-11 05:56:02 +0000</creation_ts>
          <short_desc>Target dropdown is not updated automatically and contains empty string as default</short_desc>
          <delta_ts>2010-12-21 05:59:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anna Dushistova">anna.dushistova</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>liping.ke</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10880</commentid>
    <comment_count>0</comment_count>
    <who name="Anna Dushistova">anna.dushistova</who>
    <bug_when>2010-11-11 05:56:02 +0000</bug_when>
    <thetext>In Yocto SDK preference page, with the default settings, target is empty, though it should be the first one from those contained in SDK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10882</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-11-11 06:05:21 +0000</bug_when>
    <thetext>Hi Anna,

We leave it&apos;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&apos;s the possibility it&apos;s not setup yet, so the list will be empty. 2. we support 4 arches: x86, arm, ppc, mips, we don&apos;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&apos;s a list...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10883</commentid>
    <comment_count>2</comment_count>
    <who name="Anna Dushistova">anna.dushistova</who>
    <bug_when>2010-11-11 07:46:46 +0000</bug_when>
    <thetext>Jessica,
I did set up my SDK, why is it still empty as default?
I installed the arm one, I assume that since it&apos;s the only one that I have at the moment, it should show up automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10884</commentid>
    <comment_count>3</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2010-11-11 17:20:11 +0000</bug_when>
    <thetext>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&apos;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)
&gt; Jessica,
&gt; I did set up my SDK, why is it still empty as default?
&gt; I installed the arm one, I assume that since it&apos;s the only one that I have at
&gt; the moment, it should show up automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10885</commentid>
    <comment_count>4</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-11-11 17:54:34 +0000</bug_when>
    <thetext>Liping,

What Anna is saying is that since she only has one arch (arm), it should be auto picked.  Only once there&apos;s a list, we default to empty...  I kind of agree that&apos;s one smart logic we need to have in our code...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10886</commentid>
    <comment_count>5</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2010-11-11 17:56:03 +0000</bug_when>
    <thetext>Oh, that&apos;s reasonable.

I will fix the problem when I have time.

Thanks&amp; Regards,
criping

(In reply to comment #4)
&gt; Liping,
&gt; 
&gt; What Anna is saying is that since she only has one arch (arm), it should be
&gt; auto picked.  Only once there&apos;s a list, we default to empty...  I kind of agree
&gt; that&apos;s one smart logic we need to have in our code...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10889</commentid>
    <comment_count>6</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-11-12 13:00:48 +0000</bug_when>
    <thetext>I fixed the issue in commit 0cfe036</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>