commit: 37cd6231a0cbb920a4dd62e4d3dcdbfa21d578c0
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 21 15:18:39 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 21 17:56:52 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37cd6231
kernel-install.eclass: simplify case
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/kernel-install.eclass | 21 +++------------------
1 file changed, 3 insertions(+), 18 deletions(-)
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index ef64bde6d414..b96caba08a3e 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -150,27 +150,12 @@ kernel-install_get_qemu_arch() {
x86)
echo i386
;;
- arm)
- echo arm
- ;;
+ arm|ppc|ppc64|riscv|sparc|sparc64)
+ echo ${ARCH}
+ ;;
arm64)
echo aarch64
;;
- ppc)
- echo ppc
- ;;
- ppc64)
- echo ppc64
- ;;
- riscv)
- echo riscv
- ;;
- sparc)
- echo sparc
- ;;
- sparc64)
- echo sparc64
- ;;
*)
die "${FUNCNAME}: unsupported ARCH=${ARCH}"
;;