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:
+10
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user