Update the Building AsteroidOS wiki page

master
Florent Revest 2017-07-09 12:15:13 +01:00
parent a09b66e5c5
commit ae79ee8fe2
1 changed files with 8 additions and 11 deletions

View File

@ -5,9 +5,7 @@ layout: documentation
<p>If you decide to compile AsteroidOS from source be aware that its a simple process but the first build might take you a lot of time. Report any problem to the <a href="https://github.com/AsteroidOS/asteroid/issues">issues tracker</a>:</p> <p>If you decide to compile AsteroidOS from source be aware that its a simple process but the first build might take you a lot of time. Report any problem to the <a href="https://github.com/AsteroidOS/asteroid/issues">issues tracker</a>:</p>
<video class="" id="" width="100%" height="100%" controls="" loop="" autoplay=""><source src="https://asteroidos.org/wp-content/uploads/2016/09/asteroid.mp4" type="video/mp4"> <video class="" id="" width="100%" height="100%" controls="" loop="" autoplay=""><source src="https://asteroidos.org/wp-content/uploads/2016/09/asteroid.mp4" type="video/mp4"></video>
<source src="" type="video/mp4">
<source src="" type="video/mp4"></video>
<div class="page-header"> <div class="page-header">
<h1 id="downloading">Downloading</h1> <h1 id="downloading">Downloading</h1>
@ -16,19 +14,18 @@ layout: documentation
<pre><code>git clone https://github.com/AsteroidOS/asteroid.git <pre><code>git clone https://github.com/AsteroidOS/asteroid.git
cd asteroid/ cd asteroid/
</code></pre> </code></pre>
<p>This repository only contains a shell script that populates <em>src/</em> with OpenEmbedded and the appropriate layers. Then, it setups the environment for a bitbake build. This command will setup a build for <em>dory</em>, the LG G Watch, but you can also build an image for <em>bass</em>, the LG G Watch Urbane, <em>sparrow</em>, the Asus Zenwatch 2 and <em>tetra the Sony Smartwatch 3.</em></p> <p>This repository only contains a shell script that populates <em>src/</em> with OpenEmbedded and the appropriate Asteroid layers. Then, it setups the environment for a bitbake build. The following command will setup a build for <em>dory</em> (the LG G Watch) but you can also build an image for other watches by using the corresponding codename.</em></p>
<pre><code>. ./prepare-build.sh dory # Be careful that this script must be sourced and not only ran. <pre><code>. ./prepare-build.sh dory # Be careful that this script must be sourced and not only ran
</code></pre>
<p>Now that the environment is correctly setup, you should be in the build directory. You can now bake your asteroid system. Make sure you have the following build dependencies:</p>
<pre><code>git build-essential diffstat gawk chrpath texinfo
</code></pre> </code></pre>
<p>If the environment has been correctly setup, you should now be in the <i>build</i> subdirectory. Make sure you have the following build dependencies before starting a build:</p>
<pre><code>git build-essential diffstat gawk chrpath texinfo</code></pre>
<div class="page-header"> <div class="page-header">
<h1 id="building">Building</h1> <h1 id="building">Building</h1>
</div> </div>
<p>And then you can run:</p> <p>Once the environment is prepared, you can simply trigger a build with the following command:</p>
<pre><code>bitbake asteroid-image <pre><code>bitbake asteroid-image</code></pre>
</code></pre> <p><i>Note:</i> Bitbake is a powerful tool that can also build single packages (e.g: bitbake strace) or <a href="{{rel 'wiki/building-asteroidos'}}">the SDK</a> for example. Refer to its documentation for more details.</p>
<div class="page-header"> <div class="page-header">
<h1 id="installing">Installing</h1> <h1 id="installing">Installing</h1>