Download Yocto Reference Manual

Transcript
Working with Poky and Bitbake
6.6.5.1 Option 1: Quick and Dirty - Modify before Configure/Compile
Pro
Contra
No overhead, no extra
configuration
Changes are easily overwritten by Yocto
(Everything is lost!!)
Toolchain does not have to
recompile everything
It is possible to alter the source code, before Bitbake configures and compiles the recipe.
You have to start with a clean phytec-hwbringup-image build, so all working directories are
on your disk.
Use Bitbake's devshell command to jump into the source directory of the recipe. The
barebox recipe is:
bitbake barebox ‐c devshell After executing the command, you can alter the source as you wish. When you are finished
exit the devshell by typing exit.
After leaving the devshell you can recompile the package:
bitbake barebox ‐c compile ‐‐force The extra argument '--force' is important, because Yocto does not recognize that the
source code was changed.
Please note that you cannot execute the bitbake command in the devshell.
You have to leave it first.
If the build fails, execute the devshell command again and fix it. If the build is successful,
you can deploy the package and create a new SD card image.
bitbake barbox ‐c deploy # new barebox in e.g. deploy/images/phyflex‐imx6‐2/barebox.bin bitbake phytec‐hwbringup‐image # new sdcard image in e.g. deploy/images/phyflex‐imx6‐2/ # phytec‐hwbringup‐image‐phyflex‐imx6‐2.sdcard © PHYTEC Messtechnik GmbH 2015
L-813e_1
19