sysroot

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveInstallSysroot

func RemoveInstallSysroot() error

Types

type BuiltPackage

type BuiltPackage struct {
	Name          string
	DirName       string
	GitUri        string
	GitCommitHash string
}

Represents one built Package in sysroot. Before build of a Package, this struct is created and compared to already built Packages in sysroot (a json file in sysroot directory), if any field is changed, the build is performed, else it is skipped. At the end the struct in form of a json is saved to sysroot directory.

func (*BuiltPackage) CheckPrerequisites

func (builtPackage *BuiltPackage) CheckPrerequisites(*prerequisites.Args) error

func (*BuiltPackage) FillDefault

func (builtPackage *BuiltPackage) FillDefault(*prerequisites.Args) error

func (*BuiltPackage) FillDynamic

func (builtPackage *BuiltPackage) FillDynamic(args *prerequisites.Args) error

type BuiltPackages

type BuiltPackages struct {
	Packages []BuiltPackage
}

Contains built Packages in sysroot and has functions for Json encoding and decoding of built Packages.

func (*BuiltPackages) AddToBuiltPackages

func (builtPackages *BuiltPackages) AddToBuiltPackages(pack BuiltPackage) error

AddToBuiltPackages Adds packageName to built Packages.

func (*BuiltPackages) Contains

func (builtPackages *BuiltPackages) Contains(pack BuiltPackage) bool

Contains Returns true if given Package is in builtPackages, else false. All fields of BuiltPackage struct are compared. Only if the pack has empty GitCommitHash, the GitCommitHash is not compared.

type Sysroot

type Sysroot struct {
	// IsDebug - if true, it marks given sysroot as a sysroot with Debud builds
	IsDebug bool
	// PlatformString
	PlatformString *bacpack_package.PlatformString
	// contains filtered or unexported fields
}

Sysroot represents a standard Linux sysroot with all needed libraries installed. Sysroot for each build type (Release, Debug) the separate sysroot is created

func (*Sysroot) CheckPrerequisites

func (sysroot *Sysroot) CheckPrerequisites(args *prerequisites.Args) error

func (*Sysroot) CopyToSysroot

func (sysroot *Sysroot) CopyToSysroot(source string, pack BuiltPackage) error

CopyToSysroot copy source to a sysroot

func (*Sysroot) CreateSysrootDir

func (sysroot *Sysroot) CreateSysrootDir()

CreateSysrootDir Creates a Sysroot dir. If not succeed the panic occurrs.

func (*Sysroot) FillDefault

func (sysroot *Sysroot) FillDefault(*prerequisites.Args) error

func (*Sysroot) FillDynamic

func (sysroot *Sysroot) FillDynamic(*prerequisites.Args) error

func (*Sysroot) GetDirNameInSysroot

func (sysroot *Sysroot) GetDirNameInSysroot() string

GetDirNameInSysroot Returns name of the directory inside Sysroot directory.

func (*Sysroot) GetSysrootPath

func (sysroot *Sysroot) GetSysrootPath() string

GetSysrootPath Returns absolute path to the sysroot.

func (*Sysroot) IsPackageInSysroot

func (sysroot *Sysroot) IsPackageInSysroot(pack BuiltPackage) bool

IsPackageInSysroot Returns true if Package specified by BuiltPackage struct is built in sysroot, else false. If gitCommitHash is empty, it is not checked.

func (*Sysroot) IsSysrootDirectoryEmpty

func (sysroot *Sysroot) IsSysrootDirectoryEmpty() bool

IsSysrootDirectoryEmpty Returns true if specified dir do not exists or exists but is empty, otherwise returns false.

Jump to

Keyboard shortcuts

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