Documentation ¶
Index ¶
- Variables
- func AppendArchSpecificQemuArgs(qemuArgs []string) []string
- func AppendCPUKind(qemuArgs []string, kvmEnabled bool, cpuKind string) []string
- func Bootable(bootable *bool) bool
- func Console() (string, error)
- func CrossCompileMakeArgs(targetArch string) ([]string, error)
- func CrossCompiling(targetArch string) bool
- func QemuBinary() (string, error)
- func Target(arch string) (string, error)
Constants ¶
This section is empty.
Variables ¶
var ErrUnsupportedArch = fmt.Errorf("unsupported architecture: %s", runtime.GOARCH)
Functions ¶
func AppendArchSpecificQemuArgs ¶
AppendArchSpecificQemuArgs appends Qemu arguments to the input that are specific to the architecture lvh is running on. For example on ARM64, Qemu needs some precision on the -machine option to start.
func AppendCPUKind ¶
AppendCPUKind appends the -cpu type if needed, historically amd64 has used no specific kind when running without KVM, and using kvm64 when running with KVM. However, arm64 needs -cpu max in both cases to start properly.
func Bootable ¶
Bootable returns the arch-dependent default value in case the pointer is nil, so option is unconfigured. Typically arm64 should not be bootable by default because we didn't take the time to find a bootloader that was arm64 compatible so far.
func CrossCompileMakeArgs ¶
func CrossCompiling ¶
func QemuBinary ¶
Types ¶
This section is empty.