1
0
mirror of https://github.com/rafacouto/docker-openwrt-builder synced 2025-06-10 09:26:25 +00:00
2016-12-22 03:31:16 +01:00

24 lines
460 B
Bash
Executable File

#!/bin/bash
# ToDo: show target options
# ToDo
echo 'ToDo: examine targets from env vars...'
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