1
0
mirror of https://github.com/rafacouto/docker-openwrt-builder.git synced 2026-08-11 08:22:57 +00:00

Dockerfile and build script.

This commit is contained in:
Rafa Couto
2016-12-21 06:33:03 +01:00
parent 0a79940942
commit 97d29e4b07
2 changed files with 37 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \
"$WORKDIR/.config" && exit 1
./scripts/feeds update -a && exit 1
./scripts/feeds install -a && exit 1
PROCESSORS=$(cat /proc/cpuinfo | grep '^processor' | wc -l)
ionice -c 3 nice -n19 make -j $((PROCESSORS - 1))