瀏覽代碼

Use multicore debug

bryan 3 天之前
父節點
當前提交
cbe7e0468d
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 1 1
      README.md
  2. 3 2
      openwrtbuilder

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # openwrtbuilder
 
-Build and deploy OpenWRT images using convenient profiles.
+Build and deploy OpenWRT images using convenient shell-style device profiles.
 
 ## Usage
 

+ 3 - 2
openwrtbuilder

@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-# Builds and deploys OpenWRT images
+# Build and deploy OpenWRT images using convenient shell-style device profiles.
 # Copyright 2022-25 Bryan C. Roessler
 # Apache 2.0 License
 # See README and profiles for device configuration
@@ -605,7 +605,8 @@ from_source() {
   # Make prep
   execute make "${make_opts[@]}" "-j1" defconfig
   execute make "${make_opts[@]}" "-j1" download
-  ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-1))")
+  # ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-1))")
+  make_opts+=("-j$(($(nproc)-1))")
 
   # Make image
   if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" world; then