paths

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package paths contains functions used by integ tests and by mage. NOTE: to avoid chicken-and-egg problems with mage, its code cannot directly or indirectly import any packages with generated code. Otherwise, mage would be unable to compile and thus couldn't generate the code.

Index

Constants

View Source
const (
	KOrgKDir = "https://cdn.kernel.org/pub/linux/kernel/v4.x/"
)

Variables

View Source
var (
	// If you have proprietary cmds, set this variable and put the code in
	// subdirs (img,windows,util). Those commands will be used in the same
	// manner as non-proprietary ones.
	//
	// To keep things clean, recommend initializing in an init() function in a
	// separate file.
	ProprietaryCmdDir string

	// Set to the prefix used for accessing blobstore, e.g. s3://bucketname/blah/
	// Support for other blob stores is not yet implemented.
	//
	// As with ProprietaryCmdDir, recommend setting this in an init() function
	// in a separate file.
	BlobstorePrefix string

	// "normal" kernel with factory restore functionality
	KBootName = "norm_boot"
	// provisioning kernel with support for initial imaging, QA, etc
	MfgName = "provision.pxe"
)

vars the user may wish to modify. override in another file.

View Source
var (
	RepoRoot, ImportPath, WorkDir, ArtifactDir string

	// GoDirs - dirs containing code; limit go test and go generate
	// to specific paths, else they will be very slow due to scanning
	// /build/brx, /work, etc - dirs with myriad files but no go.
	GoDirs []string

	//paths for compiled kernel images
	KNoInitramfs, KBoot, KMfg, KInstaller string

	//kernel build dir
	KBuild string

	//init binary - normal, mfg
	InitBin, MfgBin string

	//go binaries that end up inside os image
	ImgAppsTxz string
	ImgCmds    []string //pattern(s) suitable for 'go list'

	//like ImgCmds, but these do not end up in image
	UtilCmds, WinCmds []string

	//qemu
	QDir, BiosDir, OvmfDir, QemuSys, QemuImg string

	//buildroot
	BRxz, BRcpio string

	//initramfs
	InitramfsBoot, InitramfsMfg string

	//fake update file for lifecycle tests
	FakeUpdate string

	//path for local copy of linter
	LinterPath string

	// paths in blobstore
	BlobstoreKDir, BlobstoreBRCombined, BlobstoreQemu, BlobstoreLinter string
)

other vars the user is less likely to want to modify

Functions

func FileList

func FileList(d string) ([]string, error)

Looks for files in dirs under build, such as initramfs/ and initramfs_mfg/. Adds them to a list for inclusion in cpio, format 'path/to/src:path/to/dest'

func Pkglist

func Pkglist(patterns ...string) ([]string, error)

expands pattern via go list - note that pattern isn't a shell glob

Types

This section is empty.

Jump to

Keyboard shortcuts

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