Phytec Yocto Reference Manual


Add to my manuals
47 Pages

advertisement

Phytec Yocto Reference Manual | Manualzz

Working with Poky and Bitbake

If you can not find your software in the layers provided in the folder sources/, see the next section to include another layer into the Yocto build.

References: Yocto 1.8.1 Docu - Customizing Images Using local.conf

6.7.3 How to add an additional Layer

This is a step by step guide how to add another layer to your Yocto build and install additional software from it. As an example we include the network security scanner nmap in the layer meta-security.

First you must locate in the layer which software is hosted.

Checkout the

OpenEmbedded MetaData Index

and guess a little bit. The network scanner

nmap is in the meta-security layer. See

meta-security on layers.openembedded.org

.

To integrate it into the Yocto build, you have to checkout out the repository and then switch to the correct stable branch. Since the BSP is based on the Yocto 'dizzy' build, you should try to use the 'dizzy' branch in the layer, too, but other branches may also work. host$ cd sources  host$ git clone git://git.yoctoproject.org/meta‐security host$ git branch –r 

All available remote branches will show up. Usually there should be 'daisy', 'dizzy', 'fido',

'master', ... host$ git checkout fido 

As there is no 'dizzy' branch in meta-security, we try the next stable branch from 'dizzy', which is 'fido'.

Now we add the directory of the layer to the file build/conf/bblayers.conf by appending the line

# file build/conf/bblayers.conf 

BBLAYERS += "${BSPDIR}/sources/meta‐security"  to the end of the file. After that you can check if the layer is available in the build configuration by executing host$ bitbake‐layers show‐layers 

If there is an error like

ERROR: Layer 'security' depends on layer 'perl-layer', but this layer is not enabled in your configuration the layer, that you want to add (here meta-security), depends on another layer, which you need to enable first. E.g. the dependency required here is a layer in meta-openembedded

© PHYTEC Messtechnik GmbH 2016 L-813e_3 19

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents