tillitis-key/contrib/Makefile
Michael Cardell Widerkrantz e7e03c21b9
build tools: Add podman support
- Add a small menu of build targets
- Add podman support, both building the image, creating a container of
  the image and running shell, and running make inside a podman image.
2022-12-16 10:14:21 +01:00

23 lines
806 B
Makefile

all:
@echo "Build targets: "
@echo "build Build an image for building tools with Docker"
@echo "run Run a shell using the above image with Docker"
@echo "podman-build Build an image with podman"
@echo "podman-run Run a shell using above image with podman"
@echo "podman-run-make Run the above image with podman and build the FPGA bitstream"
build:
docker build -t tkey-builder .
run:
docker run --mount type=bind,source="`pwd`/../",target=/build -w /build -it tkey-builder /usr/bin/bash
podman-build:
podman build -t tkey-builder .
podman-run:
podman run --mount type=bind,source="`pwd`/../",target=/build -w /build -it tkey-builder /usr/bin/bash
podman-run-make:
podman run --mount type=bind,source="`pwd`/../hw/application_fpga",target=/build -w /build -it tkey-builder make