target

package
v0.3.0-21-gf283c75 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file expect in compliance with the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KernelDbgName added in v0.3.0

func KernelDbgName(target TargetConfig) (string, error)

KernelDbgName is identical to KernelName but is used to access the symbolic kernel image which has not been stripped.

func KernelName added in v0.3.0

func KernelName(target TargetConfig) (string, error)

TargetName returns the name of the kernel image based on standard pattern which is baked within Unikraft's build system, see for example `KVM_IMAGE`. If we do not have a target name, return an error.

Types

type Command

type Command []string

type TargetConfig

type TargetConfig struct {
	component.ComponentConfig

	Architecture arch.ArchitectureConfig `yaml:",omitempty" json:"architecture,omitempty"`
	Platform     plat.PlatformConfig     `yaml:",omitempty" json:"platform,omitempty"`
	Format       string                  `yaml:",omitempty" json:"format,omitempty"`
	Kernel       string                  `yaml:",omitempty" json:"kernel,omitempty"`
	KernelDbg    string                  `yaml:",omitempty" json:"kerneldbg,omitempty"`
	Initrd       *initrd.InitrdConfig    `yaml:",omitempty" json:"initrd,omitempty"`
	Command      []string                `yaml:",omitempty" json:"commands"`

	Extensions map[string]interface{} `yaml:",inline" json:"-"`
}

func (*TargetConfig) ArchPlatString

func (tc *TargetConfig) ArchPlatString() string

ArchPlatString returns the canonical name for platform architecture string combination

func (TargetConfig) Component

func (tc TargetConfig) Component() component.ComponentConfig

func (TargetConfig) KConfigMenu

func (tc TargetConfig) KConfigMenu() (*kconfig.KConfigFile, error)

func (TargetConfig) KConfigValues

func (tc TargetConfig) KConfigValues() (kconfig.KConfigValues, error)

func (TargetConfig) Name

func (tc TargetConfig) Name() string

func (TargetConfig) PrintInfo

func (tc TargetConfig) PrintInfo() string

func (TargetConfig) Source

func (tc TargetConfig) Source() string

func (TargetConfig) Type

func (TargetConfig) Version

func (tc TargetConfig) Version() string

type Targets

type Targets []TargetConfig

Jump to

Keyboard shortcuts

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