summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/kernel-install.eclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index 609afa754deb..3f98c4a53443 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -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] )
)"
@@ -161,6 +162,9 @@ kernel-install_get_qemu_arch() {
arm64)
echo aarch64
;;
+ ppc)
+ echo ppc
+ ;;
ppc64)
echo ppc64
;;
@@ -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"
;;