Use multicore debug

This commit is contained in:
2025-07-28 01:02:49 -04:00
parent a664b70cf4
commit cbe7e0468d
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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