Step 4 : Compile yocto source code =================================== .. tab-set:: .. tab-item:: Compile yocto source code * In this program, you are going to learn .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow * How to ? .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Compile yocto source code ` .. _yocto_rpi_4b_step4_0: .. tab-set:: .. tab-item:: Compile yocto source code * Make sure you are inside the build directory. .. code-block:: c $ pwd $HOME/build * Run the following command to fetch all the packages required during the compilation. .. code-block:: c $ bitbake core-image-base --runonly=fetch * Compile the yocto source code by running the following bitbake command. .. code-block:: c $ bitbake core-image-base * final target image will be present in the following directory. .. code-block:: c $ cd build/tmp/deploy/images/raspberrypi4/ $ ls -l -rw-r--r-- 1 test test 16136058 Jan 11 16:52 core-image-base-raspberrypi4.wic.bz2