Files
brnQuanFW/compile-with-docker.sh
Bruno Rybársky 3850025e63
All checks were successful
Build Firmware / build (push) Successful in 20s
Yet another test
2025-02-27 17:36:40 +01:00

17 lines
599 B
Bash
Executable File

#!/bin/sh
#export DOCKER_DEFAULT_PLATFORM=linux/amd64
#export DOCKER_NETWORK="--network=host"
IMAGE_NAME="uvk5"
rm "${PWD}/compiled-firmware/*"
echo "Building docker image $IMAGE_NAME"
if ! docker build -t $DOCKER_NETWORK $IMAGE_NAME .
then
echo "Failed to build docker image"
exit 1
fi
echo "Custom compilation..."
docker run --rm -v "${PWD}/compiled-firmware/:/app/compiled-firmware" $IMAGE_NAME /bin/bash -c "mkdir -p compiled-firmware; rm ./compiled-firmware/*; cd /app && make -s \
EDITION_STRING=Custom \
TARGET=f4hwn \
&& cp f4hwn* compiled-firmware/"