diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-12-16 12:54:56 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-12-16 13:45:33 -0800 |
commit | e1b02758164baf3f42801d29c4ae5de47efe32b0 (patch) | |
tree | 3530e6357c420bebf44a28a67becc8cca42cd13a /eclass | |
parent | dist-kernel-utils.eclass: add ppc(32) support (diff) | |
download | gentoo-e1b02758164baf3f42801d29c4ae5de47efe32b0.tar.gz gentoo-e1b02758164baf3f42801d29c4ae5de47efe32b0.tar.bz2 gentoo-e1b02758164baf3f42801d29c4ae5de47efe32b0.zip |
kernel-install.eclass: add ppc(32) support
Bug: https://bugs.gentoo.org/794799
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-install.eclass | 9 |
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" ;; |