1
0
mirror of https://github.com/rafacouto/docker-openwrt-builder synced 2025-06-07 16:06:16 +00:00
2016-12-22 04:35:19 +01:00

27 lines
562 B
Bash
Executable File

#!/bin/bash
# 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
# 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
# compile
ionice -c 3 nice -n19 make -j3 V=s