diff --git a/Makefile b/Makefile index 7835e0eb4f..01e76fd661 100644 --- a/Makefile +++ b/Makefile @@ -151,7 +151,9 @@ CROSS_BUILD_TARGETS := \ bin/podman.cross.linux.mips \ bin/podman.cross.linux.mipsle \ bin/podman.cross.linux.mips64 \ - bin/podman.cross.linux.mips64le + bin/podman.cross.linux.mips64le \ + bin/podman.cross.freebsd.amd64 \ + bin/podman.cross.freebsd.arm64 # Dereference variable $(1), return value if non-empty, otherwise raise an error. err_if_empty = $(if $(strip $($(1))),$(strip $($(1))),$(error Required variable $(1) value is undefined, whitespace, or empty)) diff --git a/pkg/machine/qemu/options_freebsd_arm64.go b/pkg/machine/qemu/options_freebsd_arm64.go new file mode 100644 index 0000000000..9a222190c8 --- /dev/null +++ b/pkg/machine/qemu/options_freebsd_arm64.go @@ -0,0 +1,21 @@ +package qemu + +var ( + QemuCommand = "qemu-system-aarch64" +) + +func (v *MachineVM) addArchOptions() []string { + opts := []string{ + "-machine", "virt", + "-accel", "tcg", + "-cpu", "host"} + return opts +} + +func (v *MachineVM) prepare() error { + return nil +} + +func (v *MachineVM) archRemovalFiles() []string { + return []string{} +} diff --git a/pkg/rctl/rctl.go b/pkg/rctl/rctl.go index 135cc60cb1..dccf9e7cd5 100644 --- a/pkg/rctl/rctl.go +++ b/pkg/rctl/rctl.go @@ -3,9 +3,6 @@ package rctl -// #include -import "C" - import ( "bytes" "fmt"