0
mirror of https://github.com/loopj/wavephoenix.git synced 2026-03-21 14:03:46 +00:00

18 lines
428 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Check that BOARD environment variable is set
if [[ -z "$BOARD" ]]; then
echo "Error: BOARD environment variable not set"
exit 1
fi
# Generate the makefile project for the specified board
slc generate bootloader.slcp \
--with "$BOARD;wavephoenix" \
--sdk-extensions=../boards \
-o makefile \
-d target/$BOARD
# Build the project
make -C target/$BOARD -f bootloader.Makefile release