advertisement
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
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 7 The Yocto Project
- 7 Introduction
- 7 Core Components
- 8 Vocabulary
- 8 Recipes
- 8 Classes
- 8 Layers
- 8 Machine
- 8 Distribution (Distro)
- 9 Bitbake
- 9 Toaster
- 9 Official Documentation
- 10 Compatible Linux Distributions
- 11 Introduction to the Phytec BSP
- 11 BSP Structure
- 11 BSP Management
- 11 phyLinux
- 12 BSP Metadata
- 12 meta-openembedded
- 12 meta-qt
- 12 meta-phytec
- 13 meta-yogurt
- 13 Build Configuration
- 14 Installation
- 14 Setting up the Host
- 14 Git Configuration
- 15 site.conf Setup
- 16 phyLinux Documentation
- 16 Get phyLinux
- 16 Basic Usage
- 17 Initialization
- 18 Advanced Usage
- 19 Working with Poky and Bitbake
- 19 Start the Build
- 19 Images
- 20 Installing the SDK
- 20 Accessing Development States between Releases
- 21 Inspect your Build Configuration
- 21 BSP Features of meta-phytec and meta-yogurt
- 21 Buildinfo
- 23 Customizing the BSP
- 23 How to disable the Qt Demo
- 24 How to add additional Software to the BSP Image
- 24 Notes about Packages and Recipes
- 25 How to add an additional Layer
- 26 How to create your own Layer
- 27 How to know your Kernel and Bootloader Recipe and Version
- 28 How to Configure the Kernel or Bootloader
- 29 How to add a Configuration Fragment to a Recipe
- 30 to a Recipe
- 31 How to patch the Kernel or Bootloader with devtool
- 32 How to patch the Kernel or Bootloader with the "temporary Method
- 35 How to work with the Kernel and Bootloader using SRC_URI in local.conf
- 36 Adding existing Software with the "sustainable Method
- 37 How to change the Network Configuration
- 38 Common Tasks
- 38 Debugging a User Space Application
- 39 Generating Source Mirrors, working offline
- 39 Compiling on the Target
- 40 Different Toolchains
- 40 Using the SDK
- 42 Working with Kernel Modules
- 42 Working with udev
- 44 Yocto Documentation
- 45 Revision History