platform: introduce hardware platform abstraction

These objects describes the hardware an image runs on. Including
 - architecture
 - bootloader
 - required firmware

Use the platform abstraction to move firmware packages out of the package set
definitions.
This commit is contained in:
Tom Gundersen 2022-07-05 17:43:03 +01:00
parent 682481d4d7
commit ec8cc01f95
9 changed files with 227 additions and 141 deletions

View file

@ -2,6 +2,7 @@ package main
import (
"github.com/osbuild/osbuild-composer/internal/manifest"
"github.com/osbuild/osbuild-composer/internal/platform"
"github.com/osbuild/osbuild-composer/internal/rpmmd"
)
@ -31,7 +32,7 @@ func MyManifest(m *manifest.Manifest, options *MyOptions, repos []rpmmd.RepoConf
build := manifest.NewBuildPipeline(m, runner, repos)
// create a non-bootable OS tree containing the `core` comps group
os := manifest.NewOSPipeline(m, build, manifest.ARCH_X86_64, repos)
os := manifest.NewOSPipeline(m, build, &platform.X86{}, repos)
os.ExtraBasePackages = []string{
"@core",
}