[RFC PATCH 5/5] riscv: Add a new BSP cfg variant to be built with llvm/clang

Hesham Almatary hesham.almatary at cl.cam.ac.uk
Thu Oct 24 09:29:56 UTC 2019


On Thu, 24 Oct 2019 at 09:55, Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
> On 23/10/2019 15:44, Hesham Almatary wrote:
> > +# Clang-related flags
> > +CPU_CFLAGS += -target riscv64-unknown-rtems6 -D__rtems__ --sysroot=$(NEWLIB_SYSROOT)
>
> Was clang configured to support this target? If yes, then why doesn't it
> define __rtems__ automatically?
>
That makes more sense, I will work on it. Yes, our Clang project does
support RTEMS [1], which hopefully will end up upstream.

[1] https://github.com/CTSRD-CHERI/llvm-project/blob/master/clang/lib/Driver/ToolChains/RTEMS.cpp

> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax     : +49 89 189 47 41-09
> E-Mail  : sebastian.huber at embedded-brains.de
> PGP     : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list