2022-12-15 12:27:52 -05:00
|
|
|
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"
|
|
|
|
|
2022-09-20 08:24:59 -04:00
|
|
|
build:
|
2022-12-15 12:27:52 -05:00
|
|
|
docker build -t tkey-builder .
|
2022-09-20 08:24:59 -04:00
|
|
|
|
|
|
|
run:
|
2023-01-27 04:10:18 -05:00
|
|
|
docker run --rm --mount type=bind,source="`pwd`/../",target=/build -w /build -it tkey-builder /usr/bin/bash
|
2022-12-15 12:27:52 -05:00
|
|
|
|
|
|
|
podman-build:
|
|
|
|
podman build -t tkey-builder .
|
|
|
|
|
|
|
|
podman-run:
|
2023-01-27 04:10:18 -05:00
|
|
|
podman run --rm --mount type=bind,source="`pwd`/../",target=/build -w /build -it tkey-builder /usr/bin/bash
|
2022-12-15 12:27:52 -05:00
|
|
|
|
|
|
|
podman-run-make:
|
2023-01-27 04:10:18 -05:00
|
|
|
podman run --rm --mount type=bind,source="`pwd`/../hw/application_fpga",target=/build -w /build -it tkey-builder make
|