mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-28 17:12:22 +00:00
* add board information page to webui * fix github workflow, it actually reports fails now Signed-off-by: John Crispin <john@phrozen.org>
28 lines
435 B
Bash
Executable File
28 lines
435 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
|