buildscript: count available cpus with nproc #74
Labels
No Label
RFC
RFT
WIP
blocked
bsp
bug
build/scripts/tools
duplicate
feature
fixed
layer3
mantis
more details required
needs changes
node
packages/fff
rejected
security
trivial
upstream
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: freifunk-franken/firmware#74
Loading…
Reference in New Issue
No description provided.
Delete Branch "jkimmel/firmware:nproc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Grepping
/proc/cpuinfo
does not yield the correct number of availablecpus when running in a docker container or setting the number of
available cpus with taskset.
This will prevent using too many build jobs on environments where the
number of available cpus is reduced.
nproc
is part ofcoreutils
.Signed-off-by: Johannes Kimmel fff@bareminimum.eu
Reviewed-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Robert Langhammer rlanghammer@web.de
Mal wieder vergessen zu quoten.
Danke, wird gleich gemergt.
6e5a6073b8
Pull request closed