Changes between Version 1 and Version 2 of Yocto/SDK


Ignore:
Timestamp:
10/22/2017 06:13:18 AM (7 years ago)
Author:
Chris Lang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Yocto/SDK

    v1 v2  
    11{{{#!html
     2       
    23          <div id="wikipage" class="trac-content"><p>
    34</p><div class="wiki-toc">
     
    2223Cross Compile SDK Downloads:
    2324</p>
    24 <ul><li><a class="ext-link" href="http://blog.gateworks.com/?wpdmpro=ventana-yocto-1-8-2-sdk-20160328-1730-sh"><span class="icon">​</span>Yocto 1.8.2 SDK</a> - (sha256sum: de6b93f543fedba0ad4283fcbe28c7ce1dd0a8c6140f42896ba8fa4364e26cd2)
     25<ul><li><a class="ext-link" href="http://blog.gateworks.com/?wpdmpro=ventana-yocto-2-3-1-sdk-20170830-sh"><span class="icon">​</span>Yocto 2.3.1 SDK</a> - (sha256sum: fb3e12598efad13d3be4a9abaf53b200093b44556e5648c6ff12790d71eec075)
     26</li><li><a class="ext-link" href="http://blog.gateworks.com/?wpdmpro=ventana-yocto-1-8-2-sdk-20160328-1730-sh"><span class="icon">​</span>Yocto 1.8.2 SDK</a> - (sha256sum: de6b93f543fedba0ad4283fcbe28c7ce1dd0a8c6140f42896ba8fa4364e26cd2)
    2527</li></ul><p>
    2628You can build your own SDK compatible with a filesystem image of your choice using information <a class="wiki" href="/wiki/Yocto/Building#BuildingatoolchainandorSDK">here</a>.
     
    3436</li><li>M4 CONFIGURE_FLAGS (for aclocal/autoconf/autoheader/automake/autoreconf/autoupdate use)
    3537</li></ul><ol><li>Run the downloaded/built <tt>.sh</tt> file and specify an install path:
    36 <div class="code"><pre>/bin/sh ventana-yocto-1.8-sdk-*.sh -d ~/sdk
     38<div class="code"><pre>/bin/sh ventana-yocto-2.3-sdk-*.sh -d ~/sdk
    3739</pre></div><ul><li>Note that you need write access to the directory you wish to install to. By default this is <tt>/opt/poky/</tt> but you can change it when prompted or via the <tt>-d &lt;dir&gt;</tt> parameter
    3840</li><li>do not run the install script as root - if you do, you will need to adjust some directory permissions
     
    4749</li></ul></li></ol><ol start="5"><li>Build:
    4850<ul><li>to build a standalone single source app (ie <tt>hellowworld.c</tt>) use variables defined by the environment such as CC, LD, AR, etc:
    49 <div class="code"><pre>cat <span class="s">&lt;&lt; EOF &gt;&gt; /tmp/helloworld.c
     51<div class="code"><pre>cat <span class="s">&lt;&lt; EOF &gt;&gt; helloworld.c
    5052#include &lt;stdio.h&gt;
    5153
     
    5658}
    5759EOF</span>
    58 </pre></div><div class="code"><pre><span class="k">${</span><span class="nv">CC</span><span class="k">}</span> /tmp/helloworld.c -o /tmp/helloworld
     60</pre></div><div class="code"><pre><span class="nv">$ </span><span class="k">${</span><span class="nv">CC</span><span class="k">}</span> helloworld.c -o helloworld
     61<span class="nv">$ </span>file helloworld
     62helloworld: ELF 32-bit LSB executable, ARM, EABI5 version 1 <span class="o">(</span>SYSV<span class="o">)</span>, dynamically linked, interpreter /lib/ld-linux-armhf.so.3, <span class="k">for </span>GNU/Linux 3.2.0, BuildID<span class="o">[</span>sha1<span class="o">]=</span>6f867176027322dff8c2fbd469cdff804547e2d7, not stripped
    5963</pre></div></li><li>to build using a Makefile which properly uses CC/CFLAGS/LDFLAGS/LIBS etc:
    6064<div class="code"><pre>make
    61 </pre></div></li></ul></li></ol
     65</pre></div></li></ul></li></ol><p>
     66For more complete examples see:
     67</p>
     68<ul><li><a class="ext-link" href="http://www.yoctoproject.org/docs/2.3/sdk-manual/sdk-manual.html"><span class="icon">​</span>Yocto SDK manual</a>
     69</li></ul>
    6270}}}