Phytec Yocto Reference Manual


Add to my manuals
47 Pages

advertisement

Phytec Yocto Reference Manual | Manualzz

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

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