imgprod

package
v0.0.0-...-06b3c08 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProduceAll

func ProduceAll(t *builder.TargetBuilder, ver image.ImageVersion,
	sigKeys []sec.PrivSignKey, encKeyFilename string, encKeyIndex int,
	hdrPad int, imagePad int, sectionString string, useLegacyTLV bool) error

func ProduceAllV1

func ProduceAllV1(t *builder.TargetBuilder, ver image.ImageVersion,
	sigKeys []sec.PrivSignKey, encKeyFilename string, encKeyIndex int,
	hdrPad int, imagePad int, sections string, useLegacyTLV bool) error

func ProduceManifest

func ProduceManifest(opts manifest.ManifestCreateOpts) error

Types

type ImageProdOpts

type ImageProdOpts struct {
	LoaderSrcFilename string
	LoaderDstFilename string
	LoaderHexFilename string
	AppSrcFilename    string
	AppDstFilename    string
	AppHexFilename    string
	EncKeyFilename    string
	EncKeyIndex       int
	Sections          []image.Section
	Version           image.ImageVersion
	SigKeys           []sec.PrivSignKey
	BaseAddr          int
	HdrPad            int
	ImagePad          int
	DummyC            *toolchain.Compiler
	UseLegacyTLV      bool
}

func OptsFromTgtBldr

func OptsFromTgtBldr(b *builder.TargetBuilder, ver image.ImageVersion,
	sigKeys []sec.PrivSignKey, encKeyFilename string, encKeyIndex int,
	hdrPad int, imagePad int, sections []image.Section, useLegacyTLV bool) (ImageProdOpts, error)

type ProducedImage

type ProducedImage struct {
	Filename string
	Image    image.Image
	Hash     []byte
	FileSize int
}

type ProducedImageSet

type ProducedImageSet struct {
	Loader *ProducedImage
	App    ProducedImage
}

func ProduceImages

func ProduceImages(opts ImageProdOpts) (ProducedImageSet, error)

type ProducedImageSetV1

type ProducedImageSetV1 struct {
	Loader *ProducedImageV1
	App    ProducedImageV1
}

func ProduceImagesV1

func ProduceImagesV1(opts ImageProdOpts) (ProducedImageSetV1, error)

type ProducedImageV1

type ProducedImageV1 struct {
	Filename string
	Image    image.ImageV1
	Hash     []byte
	FileSize int
}

Jump to

Keyboard shortcuts

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