Skip to content

Commit

Permalink
ci_build.sh: add support for CI_CROSSBUILD_HOST and/or CI_CROSSBUILD_…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimklimov committed Mar 12, 2022
1 parent fe08cce commit f655269
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,15 @@ default|default-alldrv|default-alldrv:no-distcheck|default-all-errors|default-sp
CONFIG_OPTS+=("--with-valgrind=no")
fi

if [ -n "${CI_CROSSBUILD_TARGET-}" ] || [ -n "${CI_CROSSBUILD_HOST-}" ] ; then
# at least one is e.g. "arm-linux-gnueabihf"
[ -z "${CI_CROSSBUILD_TARGET-}" ] && CI_CROSSBUILD_TARGET="${CI_CROSSBUILD_HOST}"
[ -z "${CI_CROSSBUILD_HOST-}" ] && CI_CROSSBUILD_HOST="${CI_CROSSBUILD_TARGET}"
echo "NOTE: Cross-build was requested, passing options to configure this for target '${CI_CROSSBUILD_TARGET}' host '${CI_CROSSBUILD_HOST}' (note you may need customized PKG_CONFIG_PATH)" >&2
CONFIG_OPTS+=("--host=${CI_CROSSBUILD_HOST}")
CONFIG_OPTS+=("--target=${CI_CROSSBUILD_TARGET}")
fi

# This flag is primarily linked with (lack of) docs generation enabled
# (or not) in some BUILD_TYPE scenarios or workers. Initial value may
# be set by caller, but codepaths below have the final word.
Expand Down

0 comments on commit f655269

Please sign in to comment.