mirror of
https://github.com/rafacouto/docker-openwrt-builder.git
synced 2026-08-11 08:22:57 +00:00
Compilation of openwrt.
This commit is contained in:
+8
-11
@@ -2,24 +2,21 @@
|
||||
|
||||
# ToDo: show target options
|
||||
|
||||
# ToDo
|
||||
echo 'ToDo: examine targets from env vars...'
|
||||
echo "WORKDIR=$WORKDIR"
|
||||
echo "OPENWRT_RELEASE=$OPENWRT_RELEASE"
|
||||
echo "OPENWRT_TARGET=$OPENWRT_TARGET"
|
||||
exit 0
|
||||
# ToDo: examine targets from env vars...
|
||||
|
||||
export OPENWRT_SRC="$WORKDIR/src"
|
||||
|
||||
# get the sources
|
||||
git clone https://github.com/openwrt/openwrt.git $WORKDIR/src
|
||||
git clone https://github.com/openwrt/openwrt.git $OPENWRT_SRC
|
||||
cd $OPENWRT_SRC
|
||||
git checkout $OPENWRT_RELEASE
|
||||
|
||||
# set the config file
|
||||
cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \
|
||||
"$WORKDIR/src/.config" && exit 1
|
||||
cp "$WORKDIR/configs/$OPENWRT_TARGET.diff" "$OPENWRT_SRC/.config"
|
||||
|
||||
# update feeds
|
||||
./scripts/feeds update -a && exit 1
|
||||
./scripts/feeds install -a && exit 1
|
||||
./scripts/feeds update -a
|
||||
./scripts/feeds install -a
|
||||
|
||||
# compile
|
||||
ionice -c 3 nice -n19 make -j3 V=s
|
||||
|
||||
Reference in New Issue
Block a user