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

Get the sources when running the container.

This commit is contained in:
Rafa Couto
2016-12-22 03:31:16 +01:00
parent 603c371dcf
commit 0722046a26
3 changed files with 12 additions and 8 deletions
+10 -3
View File
@@ -6,11 +6,18 @@
echo 'ToDo: examine targets from env vars...'
exit 0
cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \
"$WORKDIR/.config" && exit 1
# get the sources
git clone https://github.com/openwrt/openwrt.git $WORKDIR/src
git checkout $OPENWRT_RELEASE
# set the config file
cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \
"$WORKDIR/src/.config" && exit 1
# update feeds
./scripts/feeds update -a && exit 1
./scripts/feeds install -a && exit 1
ionice -c 3 nice -n19 make -j1 V=s
# compile
ionice -c 3 nice -n19 make -j3 V=s