mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
make.sh: Add function to determine how many CPU cores the build host has
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -60,6 +60,10 @@ WARN="\\033[1;35m"
|
||||
FAIL="\\033[1;31m"
|
||||
NORMAL="\\033[0;39m"
|
||||
|
||||
system_processors() {
|
||||
getconf _NPROCESSORS_ONLN 2>/dev/null || echo "1"
|
||||
}
|
||||
|
||||
system_memory() {
|
||||
local key val unit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user