summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-12-06 16:41:44 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-12-06 16:41:44 +0100
commit77a9ceddb3ed135f91cc8a408a500173fdfad3c6 (patch)
treeca974c9d14c0d7daaaabccd77df7c9eb23f2d8bd /scripts
parent89a383c34569a6e7862f5fde46aea3e7ef050cdf (diff)
downloadptxdist-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.sh4
-rw-r--r--scripts/lib/ptxd_make_world_compile.sh3
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)