mirror of
https://github.com/containers/podman.git
synced 2025-07-12 00:27:33 +08:00
Merge pull request #16358 from dfr/freebsd-cross
Enable cross building for FreeBSD
This commit is contained in:
4
Makefile
4
Makefile
@ -151,7 +151,9 @@ CROSS_BUILD_TARGETS := \
|
|||||||
bin/podman.cross.linux.mips \
|
bin/podman.cross.linux.mips \
|
||||||
bin/podman.cross.linux.mipsle \
|
bin/podman.cross.linux.mipsle \
|
||||||
bin/podman.cross.linux.mips64 \
|
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.
|
# 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))
|
err_if_empty = $(if $(strip $($(1))),$(strip $($(1))),$(error Required variable $(1) value is undefined, whitespace, or empty))
|
||||||
|
21
pkg/machine/qemu/options_freebsd_arm64.go
Normal file
21
pkg/machine/qemu/options_freebsd_arm64.go
Normal 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{}
|
||||||
|
}
|
@ -3,9 +3,6 @@
|
|||||||
|
|
||||||
package rctl
|
package rctl
|
||||||
|
|
||||||
// #include <sys/rctl.h>
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
Reference in New Issue
Block a user