platform: add configs for ppc64le and s390x

This commit is contained in:
Achilleas Koutsou 2022-10-17 22:18:41 +02:00 committed by Christian Kellner
parent fe5835fece
commit 1584770307
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,33 @@
package platform
type PPC64LE struct {
BasePlatform
BIOS bool
}
func (p *PPC64LE) GetArch() Arch {
return ARCH_PPC64LE
}
func (p *PPC64LE) GetBIOSPlatform() string {
if p.BIOS {
return "powerpc-ieee1275"
}
return ""
}
func (p *PPC64LE) GetPackages() []string {
return []string{
"dracut-config-generic",
"powerpc-utils",
"grub2-ppc64le",
"grub2-ppc64le-modules",
}
}
func (p *PPC64LE) GetBuildPackages() []string {
return []string{
"grub2-ppc64le",
"grub2-ppc64le-modules",
}
}

View file

@ -0,0 +1,18 @@
package platform
type S390X struct {
BasePlatform
BIOS bool
}
func (p *S390X) GetArch() Arch {
return ARCH_S390X
}
func (p *S390X) GetPackages() []string {
return []string{
"dracut-config-generic",
"s390utils-base",
"s390utils-core",
}
}