diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-12-06 16:41:44 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-12-06 16:41:44 +0100 |
commit | 77a9ceddb3ed135f91cc8a408a500173fdfad3c6 (patch) | |
tree | ca974c9d14c0d7daaaabccd77df7c9eb23f2d8bd /scripts | |
parent | 89a383c34569a6e7862f5fde46aea3e7ef050cdf (diff) | |
download | ptxdist-77a9ceddb3ed135f91cc8a408a500173fdfad3c6.tar.gz ptxdist-77a9ceddb3ed135f91cc8a408a500173fdfad3c6.tar.xz |
ptxd_make_world_common: allow explicit parallel building for python packages
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_world_common.sh | 4 | ||||
-rw-r--r-- | scripts/lib/ptxd_make_world_compile.sh | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh index 7c9cc602e..46a1cecd7 100644 --- a/scripts/lib/ptxd_make_world_common.sh +++ b/scripts/lib/ptxd_make_world_common.sh @@ -440,7 +440,8 @@ ptxd_make_world_init() { # parallelmake # case "${pkg_make_par}" in - YES|"") ;; + YES) python_pkg_make_par="${PTXDIST_PARALLEL_FLAGS}" ;; + "") python_pkg_make_par= ;; NO) unset PTXDIST_PARALLELMFLAGS_INTERN unset PTXDIST_PARALLEL_FLAGS @@ -464,6 +465,7 @@ ptxd_make_world_init() { ;; python*) # no consistant support for parallel building + pkg_make_par="${python_pkg_make_par}" ;; scons) # only -jX is supported not other options diff --git a/scripts/lib/ptxd_make_world_compile.sh b/scripts/lib/ptxd_make_world_compile.sh index c411274cf..1194d24ca 100644 --- a/scripts/lib/ptxd_make_world_compile.sh +++ b/scripts/lib/ptxd_make_world_compile.sh @@ -25,7 +25,8 @@ ptxd_make_world_compile() { "${pkg_make_env}" \ "${ptx_build_python}" \ setup.py \ - "${pkg_make_opt}" + "${pkg_make_opt}" \ + "${pkg_make_par}" ) ;; ninja) |