Skip to content

Commit

Permalink
kernel-install.eclass: add ppc(32) support
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/794799
Signed-off-by: Georgy Yakovlev <[email protected]>
  • Loading branch information
gyakovlev committed Dec 16, 2021
1 parent a632e2f commit e1b0275
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eclass/kernel-install.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ BDEPEND="
sys-fs/e2fsprogs
amd64? ( app-emulation/qemu[qemu_softmmu_targets_x86_64] )
arm64? ( app-emulation/qemu[qemu_softmmu_targets_aarch64] )
ppc? ( app-emulation/qemu[qemu_softmmu_targets_ppc] )
ppc64? ( app-emulation/qemu[qemu_softmmu_targets_ppc64] )
x86? ( app-emulation/qemu[qemu_softmmu_targets_i386] )
)"
Expand Down Expand Up @@ -161,6 +162,9 @@ kernel-install_get_qemu_arch() {
arm64)
echo aarch64
;;
ppc)
echo ppc
;;
ppc64)
echo ppc64
;;
Expand Down Expand Up @@ -295,6 +299,11 @@ kernel-install_test() {
qemu_extra_args="-cpu max"
qemu_extra_append="console=ttyS0,115200n8"
;;
ppc)
# https://wiki.qemu.org/Documentation/Platforms/PowerPC#Command_line_options
qemu_extra_args="-boot d -L pc-bios -M mac99,via=pmu"
qemu_extra_append="console=ttyS0,115200n8"
;;
ppc64)
qemu_extra_args="-nodefaults"
;;
Expand Down

0 comments on commit e1b0275

Please sign in to comment.