platform: add configs for ppc64le and s390x
This commit is contained in:
parent
fe5835fece
commit
1584770307
2 changed files with 51 additions and 0 deletions
33
internal/platform/ppc64le.go
Normal file
33
internal/platform/ppc64le.go
Normal 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",
|
||||||
|
}
|
||||||
|
}
|
||||||
18
internal/platform/s390x.go
Normal file
18
internal/platform/s390x.go
Normal 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",
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue