mirror of
https://github.com/rafacouto/docker-openwrt-builder
synced 2025-06-07 16:06:16 +00:00
Configurable number of jobs to compile.
This commit is contained in:
parent
182554e7a2
commit
20beeec38f
@ -35,6 +35,6 @@ shows the help:
|
|||||||
## Thanks
|
## Thanks
|
||||||
|
|
||||||
- [Javi Loureiro](https://twitter.com/StaticBoardsES) who had the idea for Raspberry Pi devices and provided config files for them.
|
- [Javi Loureiro](https://twitter.com/StaticBoardsES) who had the idea for Raspberry Pi devices and provided config files for them.
|
||||||
- [OpenWRT community](https://openwrt.org/) for its great product.
|
- [OpenWRT community](https://openwrt.org/) for the best embedded operating system based on the Linux kernel.
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,8 +27,11 @@ cp "$OPENWRT_CONFIGS/$OPENWRT_TARGET.diff" "$OPENWRT_SRC/.config"
|
|||||||
./scripts/feeds update -a
|
./scripts/feeds update -a
|
||||||
./scripts/feeds install -a
|
./scripts/feeds install -a
|
||||||
|
|
||||||
|
# available processors
|
||||||
|
if [ -z "$JOBS" ] ; then
|
||||||
PROCESSORS=$(cat /proc/cpuinfo | grep '^processor' | wc -l)
|
PROCESSORS=$(cat /proc/cpuinfo | grep '^processor' | wc -l)
|
||||||
JOBS=$(($PROCESSORS - 1))
|
JOBS=$(($PROCESSORS - 1))
|
||||||
|
fi
|
||||||
|
|
||||||
# compile
|
# compile
|
||||||
time ionice -c 3 nice -n 19 make -j $JOBS V=s
|
time ionice -c 3 nice -n 19 make -j $JOBS V=s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user