Skip to content

Commit 803d80c

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 d8cee98 commit 803d80c

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
@@ -358,6 +358,10 @@ detect_tools()
358358
export PATCH
359359
}
360360

361+
# This function appends the -j/--jobs option to the MAKEFLAGS environment
362+
# variable based on the number of cores. However, the variable is overwritten in
363+
# the "install-dependencies" script. I created a ticket fix this (see
364+
# ENT-13041).
361365
detect_cores()
362366
{
363367
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)