diff --git a/Makefile b/Makefile index 0bf80ea2a710..3ca561a76672 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,8 @@ binaries: clean \ _output/share/lima/lima-guestagent.Linux-armv7l \ _output/share/lima/lima-guestagent.Linux-riscv64 \ _output/share/lima/lima-guestagent.FreeBSD-x86_64 \ - _output/share/lima/lima-guestagent.FreeBSD-aarch64 + _output/share/lima/lima-guestagent.FreeBSD-aarch64 \ + _output/share/lima/lima-guestagent.FreeBSD-riscv64 cp -aL examples _output/share/lima/templates ifneq ($(GOOS),windows) ln -sf templates _output/share/lima/examples @@ -146,6 +147,11 @@ _output/share/lima/lima-guestagent.FreeBSD-aarch64: GOOS=freebsd GOARCH=arm64 CGO_ENABLED=0 $(GO_BUILD) -o $@ ./cmd/lima-guestagent chmod 644 $@ +.PHONY: _output/share/lima/lima-guestagent.FreeBSD-riscv64 +_output/share/lima/lima-guestagent.FreeBSD-riscv64: + GOOS=freebsd GOARCH=riscv64 CGO_ENABLED=0 $(GO_BUILD) -o $@ ./cmd/lima-guestagent + chmod 644 $@ + .PHONY: manpages manpages: _output/bin/limactl$(exe) @mkdir -p _output/share/man/man1 diff --git a/examples/experimental/freebsd.yaml b/examples/experimental/freebsd.yaml index aa940cd03024..1fca867c10db 100644 --- a/examples/experimental/freebsd.yaml +++ b/examples/experimental/freebsd.yaml @@ -5,6 +5,12 @@ images: arch: "x86_64" - location: https://download.freebsd.org/ftp/snapshots/VM-IMAGES/14.0-CURRENT/aarch64/Latest/FreeBSD-14.0-CURRENT-arm64-aarch64.qcow2.xz arch: "aarch64" +- location: https://download.freebsd.org/ftp/snapshots/VM-IMAGES/14.0-CURRENT/riscv64/Latest/FreeBSD-14.0-CURRENT-riscv-riscv64.qcow2.xz + arch: "riscv64" + kernel: + # Extracted from https://pkg.freebsd.org/FreeBSD:13:aarch64/latest/All/u-boot-qemu-riscv64-2023.01.pkg (GPL-2.0) + location: "file://./usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin" + digest: "sha56:a7959ef65183bd4847b0fa1d2a298392148271ef62aeaa7d0ebd03399a0b1cc0" video: display: "default"