Yocto Basic Usage

Dec 4, 2019


Table of Content

1. Yocto usage

1.1 Rebuild package

  • Remove temp:

    $ bitbake -c clean gstreamer
    
  • To remove temp and sstate cache

    $ bitbake -c cleansstate gstreamer
    
  • To remove download as well, and lets begin build starting from do_fetch and all

    $ bitbake -c cleanall gstreamer
    
  • Once you are done with either of these clean, which ever suits you, you can simple give build command for the specified:

  $ bitbake gstreamer

1.2 Custom Yocto

1.2.1 Add custom layer

  • Prerequisites

    Compile a reference image for the Yocto Project

# cd <BSP_DIR>/sources  
# bitbake-layer create <NEW_LAYER_NAME> 

2. UUU usage

99. Reference URL