Add a make target and script that runs the secret generation.

The intention is to simplify building a complete bitstream as a user not
using the repo everyday. Also added a simple script that can provide
some guiding errors if some prerequisite is missing.
This commit is contained in:
dehanj 2024-06-07 11:00:09 +02:00
parent b4c525695a
commit 2b213d51b8
No known key found for this signature in database
GPG Key ID: 3707A9DBF4BB8F1A
2 changed files with 23 additions and 0 deletions

View File

@ -61,6 +61,10 @@ flash:
-w /build/hw/application_fpga \ -w /build/hw/application_fpga \
-it $(IMAGE) tillitis-iceprog /build/application_fpga.bin -it $(IMAGE) tillitis-iceprog /build/application_fpga.bin
build-unlocked:
podman run --rm --mount type=bind,source="`pwd`/../hw/application_fpga",target=/build -w /build -it \
$(IMAGE) make clean secret application_fpga.bin
pull: pull:
podman pull $(IMAGE) podman pull $(IMAGE)

19
contrib/build-unlocked.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
# Check if make is in the PATH
if ! command -v make &> /dev/null
then
echo "make is not installed or not in the PATH. Please install make and try again."
exit 1
fi
# Check if podman is in the PATH
if ! command -v podman &> /dev/null
then
echo "podman is not installed or not in the PATH. Please install podman and try again."
exit 1
fi
# Run the make command
make build-unlocked
exit 0