BitBake's passthrough environment variables
Jump to navigation
Jump to search
BitBake's passthrough environment variables
When you need to manage custom variables in a script having an impact with Bitbake, it is possible to add custom environment variables to BitBake's passthrough mechanism.
#!/bin/bash # # A script to demonstrate adding custom environment variables to BitBake's passthrough mechanism. # export CUSTOM="CustomValue" export MYVAR=$CUSTOM-$USER BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS MYVAR" bitbake -e os-release | grep ^MYVAR=
Execution example
$ ../bitbake-test-passthrough.sh MYVAR="custom_value-tux"