meta data for this page
Tips
Pass env variables to bitbake
To control additional or user defined recipe's variables from env (usefull for CI) add variables to BB_ENV_PASSTHROUGH_ADDITIONS
:
export foo="BAR" export BB_ENV_PASSTHROUGH_ADDITIONS="${BB_ENV_PASSTHROUGH_ADDITIONS} foo BUILD_VERSION CI_COMMIT_BRANCH CI_COMMIT_SHORT_SHA" bitbake ...
add files to rootfs
IMAGE_PREPROCESS_COMMAND += “rsync -a –exclude=.git ${FILE_SRC}/rootfs/* ${WORKDIR}/rootfs;”
override .conf
No override or appends mechanism. But some workaround possible:
- override variables in
local.conf
- create new conf file and inherit old one with
require
- create new conf file with the same name to mask old file (take care of layer priority)
MACHINEOVERRIDES
When creatung new machine.conf based on existing one MACHINEOVERRIDES can be used:
logging
inherit logging bb.debug("HELLO = %s" % HELLO)