Documentation ¶
Overview ¶
Package build contains helper functions for building kernels/images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompilerIdentity ¶
func Image ¶
func Image(targetOS, targetArch, vmType, kernelDir, outputDir, compiler, userspaceDir, cmdlineFile, sysctlFile string, config []byte) error
Image creates a disk image for the specified OS/ARCH/VM. Kernel is taken from kernelDir, userspace system is taken from userspaceDir. If cmdlineFile is not empty, contents of the file are appended to the kernel command line. If sysctlFile is not empty, contents of the file are appended to the image /etc/sysctl.conf. Output is stored in outputDir and includes (everything except for image is optional):
- image: the image
- key: ssh key for the image
- kernel: kernel for injected boot
- initrd: initrd for injected boot
- kernel.config: actual kernel config used during build
- obj/: directory with kernel object files (e.g. vmlinux for linux)
Types ¶
type KernelBuildError ¶
type KernelBuildError struct {
*osutil.VerboseError
}
Click to show internal directories.
Click to hide internal directories.