edk2

package
v6.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetenvEdk2Path

func GetenvEdk2Path() string

GetenvEdk2Path returns the environment variable for overriding the path to use for EDK2 installations.

Types

type FirmwarePair

type FirmwarePair struct {
	Code string
	Vars string
}

FirmwarePair represents a combination of firmware code (Code) and storage (Vars).

func GetAchitectureFirmwarePairs

func GetAchitectureFirmwarePairs(hostArch int) []FirmwarePair

GetAchitectureFirmwarePairs creates an array of FirmwarePair for a specific host architecture. If the environment variable INCUS_EDK2_PATH has been set it will override the default installation path when constructing Code & Vars paths.

func GetArchitectureFirmwarePairsForUsage

func GetArchitectureFirmwarePairsForUsage(hostArch int, usage FirmwareUsage) []FirmwarePair

GetArchitectureFirmwarePairsForUsage creates an array of FirmwarePair for a specific host architecture and usage combination. If the environment variable INCUS_EDK2_PATH has been set it will override the default installation path when constructing Code & Vars paths.

type FirmwareUsage

type FirmwareUsage int

FirmwareUsage represents the situation in which a given firmware file will be used.

const (
	// GENERIC is a generic EDK2 firmware.
	GENERIC FirmwareUsage = iota

	// SECUREBOOT is a UEFI Secure Boot enabled firmware.
	SECUREBOOT

	// CSM is a firmware with the UEFI Compatibility Support Module enabled to boot BIOS-only operating systems.
	CSM
)

type Installation

type Installation struct {
	Path  string
	Usage map[FirmwareUsage][]FirmwarePair
}

Installation represents a set of available firmware at a given location on the system.

func GetArchitectureInstallations

func GetArchitectureInstallations(hostArch int) []Installation

GetArchitectureInstallations returns an array of installations for a specific host architecture.

Jump to

Keyboard shortcuts

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