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

24 lines
454 B
Bash
Executable File

#!/bin/bash
# ToDo: show target options
# ToDo: examine targets from env vars...
export OPENWRT_SRC="$WORKDIR/src"
# get the sources
git clone https://github.com/openwrt/openwrt.git $OPENWRT_SRC
cd $OPENWRT_SRC
git checkout $OPENWRT_RELEASE
# set the config file
cp "$WORKDIR/configs/$OPENWRT_TARGET.diff" "$OPENWRT_SRC/.config"
# update feeds
./scripts/feeds update -a
./scripts/feeds install -a
# compile
ionice -c 3 nice -n19 make -j3 V=s