Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Sebastian Huber
On 16/03/2020 14:59, Hesham Almatary wrote: On Mon, 16 Mar 2020 at 13:35, Sebastian Huber wrote: On 16/03/2020 14:33, Hesham Almatary wrote: Sebastian, I modified my patch set to properly add the XLEN option. This should make it generic enough for other architectures to be built with Clang/L

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Hesham Almatary
On Mon, 16 Mar 2020 at 13:35, Sebastian Huber wrote: > > On 16/03/2020 14:33, Hesham Almatary wrote: > > > Sebastian, I modified my patch set to properly add the XLEN option. > > This should make it generic enough for other architectures to be built > > with Clang/LLVM, but I have only tested RISC

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Sebastian Huber
On 16/03/2020 14:33, Hesham Almatary wrote: Sebastian, I modified my patch set to properly add the XLEN option. This should make it generic enough for other architectures to be built with Clang/LLVM, but I have only tested RISC-V. I can git send-email if you want me to. [1]https://github.com/CT

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Hesham Almatary
Sebastian, I modified my patch set to properly add the XLEN option. This should make it generic enough for other architectures to be built with Clang/LLVM, but I have only tested RISC-V. I can git send-email if you want me to. [1] https://github.com/CTSRD-CHERI/rtems/compare/967b62464bf39602f8b0f

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Hesham Almatary
On Mon, 16 Mar 2020 at 12:54, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > > On 16/03/2020 13:51, Hesham Almatary wrote: > > Thanks Sebastian! > > I tried to follow your instructions for adding this as a new option, but > unfortunately, XLEN didn't evaluate for RTEMS-BUILD-CPUKIT

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Sebastian Huber
On 16/03/2020 13:51, Hesham Almatary wrote: Thanks Sebastian! I tried to follow your instructions for adding this as a new option, but unfortunately, XLEN didn't evaluate for RTEMS-BUILD-CPUKIT-OPTCLANG to use. Here's the diff: diff --git a/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTXLEN.y

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Hesham Almatary
Thanks Sebastian! I tried to follow your instructions for adding this as a new option, but unfortunately, XLEN didn't evaluate for RTEMS-BUILD-CPUKIT-OPTCLANG to use. Here's the diff: diff --git a/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTXLEN.yml > b/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTXLEN.ym

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Sebastian Huber
On 16/03/2020 13:09, Hesham Almatary wrote: On Mon, 16 Mar 2020 at 11:53, Sebastian Huber wrote: On 16/03/2020 12:39, Hesham Almatary wrote: Hi Sebastian, I have pushed a few commits to my repo to support building RTEMS with Clang/LLVM for RISC-V. Here are the changes [1]. Since I'm still l

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Hesham Almatary
On Mon, 16 Mar 2020 at 11:53, Sebastian Huber wrote: > > On 16/03/2020 12:39, Hesham Almatary wrote: > > > Hi Sebastian, > > > > I have pushed a few commits to my repo to support building RTEMS with > > Clang/LLVM for RISC-V. Here are the changes [1]. Since I'm still > > learning about Waf and the

Re: [RFC] RTEMS Waf Clang support

2020-03-16 Thread Sebastian Huber
On 16/03/2020 12:39, Hesham Almatary wrote: Hi Sebastian, I have pushed a few commits to my repo to support building RTEMS with Clang/LLVM for RISC-V. Here are the changes [1]. Since I'm still learning about Waf and the build system, I'd appreciate your input. Most importantly, I want to know w

[RFC] RTEMS Waf Clang support

2020-03-16 Thread Hesham Almatary
Hi Sebastian, I have pushed a few commits to my repo to support building RTEMS with Clang/LLVM for RISC-V. Here are the changes [1]. Since I'm still learning about Waf and the build system, I'd appreciate your input. Most importantly, I want to know what's the right way to set "target" and "xlen"