From 1464d4736122f4e2debe200daa29a99dcbed73a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Thu, 27 Apr 2023 16:14:22 +0200 Subject: [PATCH] Add FreeBSD riscv64 guestagent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders F Björklund --- Makefile | 8 +++++++- examples/experimental/freebsd.yaml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) 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..8ed7870f5b11 100644 --- a/examples/experimental/freebsd.yaml +++ b/examples/experimental/freebsd.yaml @@ -5,6 +5,8 @@ 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" video: display: "default"