diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-01-11 15:56:10 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-01-12 10:17:07 +0100 |
commit | d7d7ca50cdc0e786bc84929231c2ff0ddde1e5fa (patch) | |
tree | 8724e376fbc71bb49748d6adbebebf851467b467 /scripts/lib/ptxd_make_world_common.sh | |
parent | cc4bf38081df71acf465c1ca5bf13cb1a49cc172 (diff) | |
download | ptxdist-d7d7ca50cdc0e786bc84929231c2ff0ddde1e5fa.tar.gz ptxdist-d7d7ca50cdc0e786bc84929231c2ff0ddde1e5fa.tar.xz |
ptxd_make_world_init: use the system python for python packages if 'HOST_SYSTEM_PYTHON' is selected
This makes it possible to use '<PKG>_CONF_TOOL := python' for packages that
are not helper for target python packages but arbitrary build tools.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_common.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_common.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh index 4b8afb0c0..601d26a49 100644 --- a/scripts/lib/ptxd_make_world_common.sh +++ b/scripts/lib/ptxd_make_world_common.sh @@ -310,7 +310,11 @@ ptxd_make_world_init() { local build_python_ptr="ptx_${pkg_conf_tool}_${pkg_type}" local env_ptr="ptx_conf_env_${pkg_type}" - ptx_build_python="${!build_python_ptr}" + if [[ " ${pkg_build_deps} " =~ " host-system-python " && "${pkg_conf_tool}" = python ]]; then + ptx_build_python=python + else + ptx_build_python="${!build_python_ptr}" + fi pkg_make_env="${pkg_conf_env:-${!env_ptr}}" pkg_make_opt="${pkg_make_opt:-build}" ;; |