From e1b02758164baf3f42801d29c4ae5de47efe32b0 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Thu, 16 Dec 2021 12:54:56 -0800 Subject: kernel-install.eclass: add ppc(32) support Bug: https://bugs.gentoo.org/794799 Signed-off-by: Georgy Yakovlev --- eclass/kernel-install.eclass | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'eclass') 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" ;; -- cgit v1.2.3-65-gdbad