firmware

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildToStringMap = map[Build]string{
	IPXE:          "ipxe.pxe",
	EFI386:        "ipxe-i386.efi",
	EFI64:         "ipxe-x86_64.efi",
	SNPONLYx86_64: "snponly-x86_64.efi",
	SNPONLYarm64:  "snponly-arm64.efi",
	UNDI:          "undionly.kpxe",
}

buildToStringMap maps a Build to a binary build name

Functions

This section is empty.

Types

type Build

type Build int
const (
	IPXE Build = iota + 1
	EFI386
	EFI64
	SNPONLYx86_64
	SNPONLYarm64
	UNDI
	GRENDEL
)

func DetectBuild

func DetectBuild(archs iana.Archs, userClass string) (Build, error)

func NewFromString

func NewFromString(b string) Build

func (Build) IsNil

func (b Build) IsNil() bool

func (Build) String

func (b Build) String() string

String returns a name for a given build.

func (Build) ToBytes

func (b Build) ToBytes() []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL