diff options
Diffstat (limited to '0003-avbin-faster-build.patch')
-rw-r--r-- | 0003-avbin-faster-build.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/0003-avbin-faster-build.patch b/0003-avbin-faster-build.patch new file mode 100644 index 000000000000..e2ce3a82486f --- /dev/null +++ b/0003-avbin-faster-build.patch @@ -0,0 +1,21 @@ +diff -Naurp a/build.sh b/build.sh +--- a/build.sh 2019-06-09 18:44:46.000000000 +0000 ++++ b/build.sh 2019-06-09 18:44:47.000000000 +0000 +@@ -147,7 +147,7 @@ die_usage() { + echo + echo "Options" + echo " --clean Don't build, just clean up all generated files and directories." +- echo " --fast Use 'make -j9' when compiling" ++ echo " --fast Use 'make -j<threads+1>' when compiling" + echo " --help Display this help text." + echo " --rebuild Don't reconfigure, just run make again." + echo +@@ -165,7 +165,7 @@ die_usage() { + for arg in $* ; do + case $arg in + "--fast") +- FAST="-j9" ;; ++ FAST="-j$(($(nproc)+1))" ;; + "--help") + die_usage ;; + "--rebuild") |