Skip to content

Commit

Permalink
build-setup-environment.in: if pyrex is in FLEXDIR, use it
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Larson <[email protected]>
  • Loading branch information
kergoth committed Jan 9, 2023
1 parent 34311bd commit 1b98f20
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/build-setup-environment.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ if [ -z "$OEINIT" ]; then
echo >&2 "oe-init-build-env not found in @OEROOT@"
false
else
if [ -d "@OEROOT@/../pyrex" ]; then
echo >&2 "Using pyrex to run builds in a docker container."

PYREX_CONFIG_BIND="@OEROOT@/.."
BITBAKEDIR=@OEROOT@/../bitbake
OEROOT=@OEROOT@/../oe-core
PYREX_OEINIT="$OEINIT"
PYREX_ROOT="@OEROOT@/../pyrex"
PYREXCONFFILE="$BUILDDIR/conf/pyrex.ini"
OEINIT="$PYREX_ROOT/pyrex-init-build-env"
fi

. "$OEINIT" "$BUILDDIR" "@BITBAKEDIR@"
export BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS GIT_SSL_CAINFO SALT_LICENSE_SERVER"
unset TEMPLATECONF OEINIT
Expand Down

0 comments on commit 1b98f20

Please sign in to comment.