All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Abel Bernabeu <abel@x-silicon.com>
Cc: Joseph Kogut <joseph.kogut@gmail.com>,
	Romain Naour <romain.naour@gmail.com>,
	Valentin Korenblit <valentinkorenblit@gmail.com>,
	Mark Corbin <mark@dibsco.co.uk>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/2] package/llvm: Support for RISC-V on the LLVM package
Date: Tue, 2 Aug 2022 00:09:18 +0200	[thread overview]
Message-ID: <20220802000918.00ea20f2@windsurf> (raw)
In-Reply-To: <20220723215448.2532160-1-abel@x-silicon.com>

On Sat, 23 Jul 2022 23:54:47 +0200
Abel Bernabeu <abel@x-silicon.com> wrote:

> The initial support for the LLVM package did not include RISC-V, and
> needed to be added.
> 
> There is a new configuration parameter added
> (BR2_PACKAGE_LLVM_TARGETS_TO_BUILD) for dealing with the fact that
> the LLVM target and the architecture have different naming for RISC-V.
> While the target for RISC-V is "RISCV" irrespective of the ISA being
> 32 or 64 bits, the architecture does contain the number of bits
> leading to "riscv32" and "riscv64".
> 
> For previously supported architectures the naming for target and
> architecture matched and thus this parameter had not been needed, but
> it is now needed for RISC-V.
> 
> Signed-off-by: Abel Bernabeu <abel@x-silicon.com>
> ---
>  package/llvm/Config.in | 10 ++++++++++
>  package/llvm/llvm.mk   |  2 +-
>  2 files changed, 11 insertions(+), 1 deletion(-)

I have simplified the RISCV quirk by moving it to the llvm.mk file:

# Build backend for target architecture. This include backends like
# AMDGPU. We need to special case RISCV.
ifneq ($(filter riscv%,$(LLVM_TARGET_ARCH)),)
LLVM_TARGETS_TO_BUILD = RISCV
else
LLVM_TARGETS_TO_BUILD = $(LLVM_TARGET_ARCH)
endif

Applied with this change, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2022-08-01 22:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-23 21:54 [Buildroot] [PATCH 1/2] package/llvm: Support for RISC-V on the LLVM package Abel Bernabeu
2022-07-23 21:54 ` [Buildroot] [PATCH 2/2] arch/riscv: Added support for RISC-V vector extension on the architecture menu Abel Bernabeu
2022-07-24  8:08   ` Romain Naour
2022-07-24  9:25     ` Arnout Vandecappelle
2022-07-24  9:52       ` Romain Naour
2022-07-24 23:13         ` Abel Bernabeu
2022-08-01 22:09 ` Thomas Petazzoni via buildroot [this message]
2022-08-02 20:27   ` [Buildroot] [PATCH 1/2] package/llvm: Support for RISC-V on the LLVM package Abel Bernabeu
  -- strict thread matches above, loose matches on Subject: below --
2022-07-04  8:55 Abel Bernabeu
2022-07-23 13:56 ` Romain Naour
2022-07-03 23:25 Abel Bernabeu

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=20220802000918.00ea20f2@windsurf \
    --to=buildroot@buildroot.org \
    --cc=abel@x-silicon.com \
    --cc=joseph.kogut@gmail.com \
    --cc=mark@dibsco.co.uk \
    --cc=romain.naour@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=valentinkorenblit@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.