<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 16 Mar 2020 at 12:54, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><br>
</p>
<div>On 16/03/2020 13:51, Hesham Almatary
wrote:<br>
</div>
<blockquote type="cite">Thanks
Sebastian!<br>
<br>
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:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">diff
--git a/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTXLEN.yml
b/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTXLEN.yml<br>
new file mode 100644<br>
index 0000000000..840a8ecc2c<br>
--- /dev/null<br>
+++ b/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTXLEN.yml<br>
@@ -0,0 +1,19 @@<br>
+active: true<br>
+build-type: option<br>
+default: ''<br>
+default-by-variant:<br>
+- value: '64'<br>
+ variants:<br>
+ - riscv/rv64.*<br>
+derived: false<br>
+enabled-by: []<br>
+header: ''<br>
+level: '1.110'<br>
+links: []<br>
+name: XLEN<br>
+normative: true<br>
+order: -1000<br>
+ref: ''<br>
+reviewed: ChapNb5NSPl062d5CnU251RB5J6TljFz_mLkmFdgwVY=<br>
+text: ''<br>
+type: build</blockquote>
<div><br>
</div>
<div>grepping for XLEN only gets me:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>c4che/spec_build.pickle:133389:ssS'RTEMS-BUILD-CPUKIT-OPTXLEN'<br>
c4che/spec_build.pickle:133433:S'XLEN'<br>
c4che/spec_build.pickle:154984:S'--target=${ARCH}${XLEN}-unknown-rtems${__RTEMS_MAJOR__}'</div>
</blockquote>
<div><br>
</div>
<div>Am I missing something?</div>
</blockquote>
<p>Did you link the new item to</p>
<p>spec/build/cpukit/RTEMS-BUILD-CPUKIT-CPUOPTS.yml</p>
<p>?<br>
</p>
</div>
</blockquote><div>That's what I was missing, thanks!<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature">Hesham</div></div>