On Fri, 21 Jul 2023, Sam James wrote:
@@ -162,6 +162,12 @@ kernel-install_get_qemu_arch() {
ppc64)
echo ppc64
;;
+ sparc)
+ echo sparc
+ ;;
+ sparc64)
+ echo sparc64
+ ;;
riscv)
echo riscv
;;
[[PGP Signed Part:Undecided]]
On Fri, 21 Jul 2023, Sam James wrote:
@@ -162,6 +162,12 @@ kernel-install_get_qemu_arch() {
ppc64)
echo ppc64
;;
+ sparc)
+ echo sparc
+ ;;
+ sparc64)
+ echo sparc64
+ ;;
riscv)
echo riscv
;;
Looks like the case patterns are in alphabetical order everywhere else,
so why not here?
On Fri, 21 Jul 2023, Michał Górny wrote:
I suppose I originally didn't anticipate this many "matching" arches but perhaps it's time to add something like:
arm|ppc|ppc64|riscv|sparc|sparc64)
echo ${ARCH}
;;
Signed-off-by: Sam James <sam@gentoo.org>
---
eclass/kernel-install.eclass | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 49aff35dea0d2..6018abd821513 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -1,4 +1,4 @@
-# Copyright 2020-2022 Gentoo Authors
+# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: kernel-install.eclass
@@ -162,6 +162,12 @@ kernel-install_get_qemu_arch() {
ppc64)
echo ppc64
;;
+ sparc)
+ echo sparc
+ ;;
+ sparc64)
+ echo sparc64
+ ;;
riscv)
echo riscv
;;
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 17:11:29 |
Calls: | 9,487 |
Calls today: | 6 |
Files: | 13,617 |
Messages: | 6,121,089 |