Use multicore debug
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# openwrtbuilder
|
# openwrtbuilder
|
||||||
|
|
||||||
Build and deploy OpenWRT images using convenient profiles.
|
Build and deploy OpenWRT images using convenient shell-style device profiles.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
# Copyright 2022-25 Bryan C. Roessler
|
||||||
# Apache 2.0 License
|
# Apache 2.0 License
|
||||||
# See README and profiles for device configuration
|
# See README and profiles for device configuration
|
||||||
@@ -605,7 +605,8 @@ from_source() {
|
|||||||
# Make prep
|
# Make prep
|
||||||
execute make "${make_opts[@]}" "-j1" defconfig
|
execute make "${make_opts[@]}" "-j1" defconfig
|
||||||
execute make "${make_opts[@]}" "-j1" download
|
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
|
# Make image
|
||||||
if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" world; then
|
if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" world; then
|
||||||
|
|||||||
Reference in New Issue
Block a user