Bitbake packages compilation process

Post Free Ads for Agri, Solar, Eco products

Compilation of Any package using bitbake goes through stages as mentioned in below image,

1. do_fetch – This downloads the source code of packages from remote location, use below command to fetch package source,

$ bitbake -c fetch package_name

2. do_unpack – This extracts the source code of tar/zip, use below command to unpack package source,

$ bitbake -c unpack package_name

3. do_patch – This patches the local changes from metadata to the source code, use below command to patch package source,

$ bitbake -c patch package_name

4. do_configure – This configures the source code for compilation, mostly it runs configure script to create a Makefile, use below command to configure package source,

$ bitbake -c configure package_name

5. do_compile – This compiles the source code to create libraries and executables, use below command to compile package source,

$ bitbake -c compile package_name

6. do_stage –

$ bitbake -c stage package_name

7. do_install – This installs the executable, libraries into temp source location, use below command to install package source,

$ bitbake -c install package_name

8. do_package – This creates a .rpm, .deb etc which can be used to later install as standalone package into already existing OS, use below command to package,

$ bitbake -c package package_name


Bitbake Process

Android Android Commands Android Java Applications Application Libraries Bash / Shell Scripts Bluetooth driver Build Frameworks Commands and Packages Core Kernel C Programs Development Environment Setup Documents / Books Errors & Failures File Systems Framebuffer / Display Driver git Go Language Programs Hardware Platforms Home JAVA Programs Kernel & Device Drivers Kernel Booting and Porting Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL NDK / Middleware / HAL Network Driver OS Concepts PHP Procfs Filesystem Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply