Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.28 KB

control_build_by_cmdline.md

File metadata and controls

39 lines (26 loc) · 1.28 KB

Controlling your build via command-line

Normally everything that is done within bitbake cannot be controlled from command-line or environment vars. To enable this feature you have to make bitbake use environment variables passed to build.

Documentation

See Bitbake Documentation

Usage

By example we want to globally enable/disable SCA from command-line.

To enable run from shell

export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SCA_ENABLE"
. ./oe-init-build-env
SCA_ENABLE=1 bitbake core-image-minimal

to disable run

export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SCA_ENABLE"
. ./oe-init-build-env
SCA_ENABLE=0 bitbake core-image-minimal

Further usage

You can easily adapt this to any variable for SCA, documented in the README.md. Just simply add the name of the variable to BB_ENV_EXTRAWHITE and pass an environment variable of the same name with the value you want, by command-line

Jenkins integration

This could be integrated into jenkins by using build parameter. For details see jenkins documentation or example integration