commit: e1b02758164baf3f42801d29c4ae5de47efe32b0 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Thu Dec 16 20:54:56 2021 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Thu Dec 16 21:45:33 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1b02758
kernel-install.eclass: add ppc(32) support Bug: https://bugs.gentoo.org/794799 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> eclass/kernel-install.eclass | 9 +++++++++ 1 file changed, 9 insertions(+) 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" ;;
