[coreboot] Passing CFLAGS to coreboot make (and reproducible builds)

Zoran Stojsavljevic zoran.stojsavljevic at gmail.com
Thu Feb 2 20:55:56 CET 2017


> Is there a right way to pass additional compiler flags to the coreboot
> makefiles?  We've been working on making the Heads firmware reproducible
> and found that the -fdebug-prefix-map option is necessary to deal with
> different build directories.  To make this work with coreboot we ended
> passing in environment variables CFLAGS_x86_32 and *CFLAGS_x86_64*:

In other words, Trammel, you would like to say that you can compile
Coreboot to be x86_64 compliant (64 bits Coreboot build)?!

(forgive me for my ignorance?)

Thank you,
Zoran

On Thu, Feb 2, 2017 at 8:37 PM, Trammell Hudson <hudson at trmm.net> wrote:

> Is there a right way to pass additional compiler flags to the coreboot
> makefiles?  We've been working on making the Heads firmware reproducible
> and found that the -fdebug-prefix-map option is necessary to deal with
> different build directories.  To make this work with coreboot we ended
> passing in environment variables CFLAGS_x86_32 and CFLAGS_x86_64:
>
>   EXTRA_FLAGS="-fdebug-prefix-map=`pwd`=. -gno-record-gcc-switches"
>   make CFLAGS_x86_32="$EXTRA_FLAGS" CFLAGS_x86_64="$EXTRA_FLAGS"
>
> Ideally coreboot could use this in its Makefile to avoid having any
> build tree path dependencies included in the binary, although for now the
> Heads build script passes in these extra flags to all of our dependencies.
>
> With this (and several other commits this week), Heads is now 100%
> reproducible (tested on Ubuntu, Qubes' Fedora, and an ancient Debian):
>
> https://github.com/osresearch/heads/releases/tag/v0.1.0
>
> --
> Trammell
>
> --
> coreboot mailing list: coreboot at coreboot.org
> https://www.coreboot.org/mailman/listinfo/coreboot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20170202/2067afb0/attachment.html>


More information about the coreboot mailing list