Skip to content

Commit

Permalink
Add FreeBSD riscv64 guestagent
Browse files Browse the repository at this point in the history
Signed-off-by: Anders F Björklund <[email protected]>
  • Loading branch information
afbjorklund committed Aug 13, 2023
1 parent 4429cc3 commit 362f41e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions examples/experimental/freebsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 362f41e

Please sign in to comment.