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 <anders.f.bjorklund@gmail.com>
  • Loading branch information
afbjorklund committed Aug 12, 2023
1 parent 4429cc3 commit 1464d47
Show file tree
Hide file tree
Showing 2 changed files with 9 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
2 changes: 2 additions & 0 deletions examples/experimental/freebsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1464d47

Please sign in to comment.