public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: toolchain@gentoo.org, dist-kernel@gentoo.org, sparc@gentoo.org,
	Sam James <sam@gentoo.org>
Subject: Re: [gentoo-dev] [PATCH 4/6] kernel-install.eclass: kernel-install_get_qemu_arch: port to sparc
Date: Fri, 21 Jul 2023 16:49:49 +0200	[thread overview]
Message-ID: <6fda2baf4cc79ff656165779a03e8d325a260ff5.camel@gentoo.org> (raw)
In-Reply-To: <20230721124615.1797438-4-sam@gentoo.org>

On Fri, 2023-07-21 at 13:46 +0100, Sam James wrote:
> 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
>  			;;

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}
  ;;

-- 
Best regards,
Michał Górny



  parent reply	other threads:[~2023-07-21 14:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-21 12:46 [gentoo-dev] [PATCH 1/6] toolchain-funcs.eclass: tc-ninja_magic_to_arch: rename helper function Sam James
2023-07-21 12:46 ` [gentoo-dev] [PATCH 2/6] dist-kernel-utils.eclass: dist-kernel_get_image_path: handle sparc Sam James
2023-07-21 12:46 ` [gentoo-dev] [PATCH 3/6] kernel-build.eclass: add special-case for sparc arch/ directory Sam James
2023-07-21 12:46 ` [gentoo-dev] [PATCH 4/6] kernel-install.eclass: kernel-install_get_qemu_arch: port to sparc Sam James
2023-07-21 12:58   ` Ulrich Mueller
2023-07-21 13:16     ` Sam James
2023-07-21 14:49   ` Michał Górny [this message]
2023-07-21 15:05     ` Ulrich Mueller
2023-07-21 12:46 ` [gentoo-dev] [PATCH 5/6] sys-kernel/gentoo-kernel: " Sam James
2023-07-21 12:46 ` [gentoo-dev] [PATCH 6/6] virtual/dist-kernel: keyword ~sparc Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6fda2baf4cc79ff656165779a03e8d325a260ff5.camel@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=dist-kernel@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=sam@gentoo.org \
    --cc=sparc@gentoo.org \
    --cc=toolchain@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox