Skip to content

Commit 1f0a1ac

Browse files
committed
detect-environment: Document the detect_cores function
Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 2cc69b5 commit 1f0a1ac

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

build-scripts/detect-environment

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ detect_tools()
360360
export PATCH
361361
}
362362

363+
# This function appends the -j/--jobs option to the MAKEFLAGS environment
364+
# variable based on the number of cores. However, the variable is overwritten in
365+
# the "install-dependencies" script. I created a ticket fix this (see
366+
# ENT-13041).
363367
detect_cores()
364368
{
365369
case "$OS_FAMILY" in

build-scripts/install-dependencies

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
PATH=$PATH:$BASEDIR/buildscripts/deps-packaging
99

1010
# Not all dependencies support building in parallel.
11+
# TODO: Investigate if this is still the case or disable parallel jobs for only
12+
# the dependencies that not support it. (ENT-13041)
1113
MAKEFLAGS=-j1
1214

1315
set -x

0 commit comments

Comments
 (0)