Merge pull request #16358 from dfr/freebsd-cross

Enable cross building for FreeBSD
This commit is contained in:
OpenShift Merge Robot
2022-10-31 13:39:20 -04:00
committed by GitHub
3 changed files with 24 additions and 4 deletions

View File

@ -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))

View File

@ -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{}
}

View File

@ -3,9 +3,6 @@
package rctl
// #include <sys/rctl.h>
import "C"
import (
"bytes"
"fmt"