firmware

package
v0.0.13 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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