Changes

Jump to: navigation, search

Advanced use of Yocto build system (BELK/BXELK)

394 bytes added, 14:04, 20 December 2016
no edit summary
|}
==U==IntroductionBuilding the software components with Yocto==The build process creates Yocto can be used to an entire Linux distribution from source. The build process can be summarized as follows:
*Make sure that all the prerequisites are met
*Initialize the build environment, as described in [[#Initializing the build environment|here]].
For more information regarding Yocto build system, go to its [[:Category:Yocto|dedicated category page]]
===Prerequisites===
The following prerequisites are required. They need to be done once only.
Some generic development tools are required on the host Linux machine:
<code>:~$ sudo dpkg-reconfigure dash</code>
===Initializing the build environment===
In the BELK, we have simplified the Yocto initialization phase, relying on the <code>repo</code> tool and on a BORA BSP git repository, so that the initialization can be completed with a few commands as reported below:
<pre>
:~/belk$ ./repo sync
</pre>
===Build the Yocto image===
Please note that even building the basic root file system requires a few hours to complete the process on a mid-hi range desktop PC (4-6 cores, 8-12 GiB RAM), also depending on the Internet connection speed (all source are fetched from the network). Nearly 20GiB of disk space is required for the build.
Once completed the initialization phase, developers can launch the Yocto image build process with the following commands:
The resulting files (kernel, devicetree and u-boot binaries, plus .tar.gz root file system) will then be available inside <code>build/tmp/deploy/images/bora</code>.
===Build additional packages===
To build additional packages the user must first enter the directory where the <code>bora-bsp-init-env.sh</code> is placed and source it:
<pre>
</pre>
The resulting packages (the default format is ipk) can be found inside <code>build/tmp/deploy/ipk</code>.
 
==Using pre-built package archive==
Starting from BELK 3.0.1 / BXELK 1.0.0, the archive of pre-built packages belonging to <code>openembedded-core</code> layer is available. This allows to install on the target these packages via <code>smart</code> command, as described [[AN-XELK-003:_Package_Management_with_Yocto|here]]. The address of the repository is: TBD.
4,650
edits

Navigation menu