build

package
v0.0.0-...-5ea79ae Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package build contains helper functions for building kernels/images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(targetOS, targetArch, vmType, kernelDir string) error

func CompilerIdentity

func CompilerIdentity(compiler string) (string, error)

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
}

Jump to

Keyboard shortcuts

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