<div dir="ltr"><span style="font-size:12.8px">> Is there a right way to pass additional compiler flags to the coreboot</span><div>> <span style="font-size:12.8px">makefiles?  We've been working on making the Heads firmware reproducible</span></div><div>> <span style="font-size:12.8px">and found that the -fdebug-prefix-map option is necessary to deal with</span></div><div>> <span style="font-size:12.8px">different build directories.  To make this work with coreboot we ended</span></div><div>> <span style="font-size:12.8px">passing in environment variables CFLAGS_x86_32 and <b><i><u><font color="#ff0000">CFLAGS_x86_64</font></u></i></b>:</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">In other words, Trammel, you would like to say that you can compile Coreboot to be </span><span style="font-size:12.8px">x86_64 compliant (64 bits Coreboot build)?!</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">(forgive me for my ignorance?)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thank you,</span></div><div><span style="font-size:12.8px">Zoran</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 8:37 PM, Trammell Hudson <span dir="ltr"><<a href="mailto:hudson@trmm.net" target="_blank">hudson@trmm.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a right way to pass additional compiler flags to the coreboot<br>
makefiles?  We've been working on making the Heads firmware reproducible<br>
and found that the -fdebug-prefix-map option is necessary to deal with<br>
different build directories.  To make this work with coreboot we ended<br>
passing in environment variables CFLAGS_x86_32 and CFLAGS_x86_64:<br>
<br>
  EXTRA_FLAGS="-fdebug-prefix-<wbr>map=`pwd`=. -gno-record-gcc-switches"<br>
  make CFLAGS_x86_32="$EXTRA_FLAGS" CFLAGS_x86_64="$EXTRA_FLAGS"<br>
<br>
Ideally coreboot could use this in its Makefile to avoid having any<br>
build tree path dependencies included in the binary, although for now the<br>
Heads build script passes in these extra flags to all of our dependencies.<br>
<br>
With this (and several other commits this week), Heads is now 100%<br>
reproducible (tested on Ubuntu, Qubes' Fedora, and an ancient Debian):<br>
<br>
<a href="https://github.com/osresearch/heads/releases/tag/v0.1.0" rel="noreferrer" target="_blank">https://github.com/osresearch/<wbr>heads/releases/tag/v0.1.0</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Trammell<br>
<br>
--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://www.coreboot.org/<wbr>mailman/listinfo/coreboot</a><br>
</font></span></blockquote></div><br></div>