Skip to content

bitbake shell

Frank Bauernöppel edited this page Apr 13, 2018 · 8 revisions

A bitbake shell is a shell on the build host where a special initialization script from Yocto Project has been executed to enable building software for the RasPi by bitbake.

Open a bitbake shell

It is assumed that setup of a Yocto project was already done in folder ~/rpi.

On the build host open a new terminal window and cd to the root folder of your Yocto Project. If you enter ls, you see a recipes folder and, if you have already done a bitbake before, also a downloads and a build folder.

Now, enter:

frank@FrankBuntuSSD:~/raspi$ source recipes/poky/oe-init-build-env rpi-build/
frank@FrankBuntuSSD:~/raspi/rpi-build$ 

The source command means: "execute the following script in the current shell". The oe-init-build-env script does all necessary initialization. The last component build is the name of the build folder where all software is bitbaked. The name of the build folder may be changed to support parallel builds with different local.conf settings. The build folder is also referred to as ${BUILDDIR} or ${TOPDIR}.

Now you can already bitbake your first image:

frank@FrankBuntuSSD:~/raspi/rpi-build$ bitbake rpi-test-image 

or, for advanced use, configure local.conf first.