advertisement
Yocto Reference Manual
You can alter the source in ~/git/barebox, or for example the default defconfig (e.g.
~/git/barebox/arch/arm/configs/imx_v7_defconfig).
After you are satisfied with your changes, you have to make a dummy commit for Yocto. If you do not do that, Yocto will not notice that the source code was modified. Thus, execute something like host$ git status # show modified files host$ git diff # show changed lines host$ git commit ‐a ‐m "dummy commit for yocto" # This command is important! in your repository folder (e.g. ~/git/barebox/).
Try to compile your new changes. Yocto will automatically notice that the source code was changed and fetches and configures everything from scratch. host$ bitbake barebox ‐c compile
If the build fails, go back to the source directory, fix the problem and recommit your changes. If the build was successful, you can deploy barebox and even create a new SD card image. host$ bitbake barbox ‐c deploy # new barebox in e.g. deploy/images/phyflex‐imx6‐2/barebox‐phyflex‐imx6‐2.bin host$ bitbake phytec‐headless‐image # new sd‐card image in e.g. deploy/images/phyflex‐imx6‐2/phytec‐headless‐image‐phyflex‐imx6‐2.sdcard
If you want to make additional changes, just make another commit in the repository and rebuild barebox again.
6.7.10 Adding existing Software with the "sustainable Method"
Now that you have created your own layer, you have a second option to add existing software to existing image definitions. Our standard image is defined in meta-yogurt in
meta-yogurt/recipes-images/images/phytec-headless-image.bb
In your layer you can now modify the recipe with a bbappend without modifying any BSP code: meta‐racer/recipes‐images/images/phytec‐headless‐image.bbappend
The append will be parsed together with the base recipe. As a result, you can easily overwrite all variables set in the base recipe, which is not always what you want. If we want to include additional software we need to append to the IMAGE_INSTALL variable:
IMAGE_INSTALL_append = " rsync"
30 © PHYTEC Messtechnik GmbH 2016 L-813e_3
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