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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.