Files
wlan-ap/build.sh
John Crispin bc13ab4544 ucentral: various updates and fixes
* Gateway and client are now talking jsonrpc on the wire.
* update the datamodel to the latest version.
* add github workflow
* add zero touch on-boarding

Signed-off-by: John Crispin <john@phrozen.org>
2021-03-29 18:51:13 +02:00

29 lines
468 B
Bash
Executable File

#!/bin/bash
set -ex
ROOT_PATH=${PWD}
BUILD_DIR=${ROOT_PATH}/openwrt
TARGET=${1}
if [ -z "$1" ]; then
echo "Error: please specify TARGET"
exit 1
fi
if [ ! "$(ls -A $BUILD_DIR)" ]; then
python3 setup.py --setup || exit 1
else
python3 setup.py --rebase
echo "### OpenWrt repo already setup"
fi
cd ${BUILD_DIR}
./scripts/gen_config.py ${TARGET} || exit 1
cd -
echo "### Building image ..."
cd $BUILD_DIR
make -j$(nproc) V=s 2>&1 | tee build.log
echo "Done"