[OE-core] [PATCH] kernel.bbclass: improve reproducibility

Bystricky, Juro juro.bystricky at intel.com
Thu May 18 21:14:40 UTC 2017


Quite possibly. However, the biggest abuser of __FILE__ seems to be kernel and kernel_modules.

________________________________
From: Burton, Ross [ross.burton at intel.com]
Sent: Thursday, May 18, 2017 2:10 PM
To: Bystricky, Juro
Cc: OE-core; Purdie, Richard; Joshua G Lock; Juro Bystricky
Subject: Re: [PATCH] kernel.bbclass: improve reproducibility


On 18 May 2017 at 22:05, Juro Bystricky <juro.bystricky at intel.com<mailto:juro.bystricky at intel.com>> wrote:
Kernel and kernel modules contain hard coded paths referencing the host
build system. This is usually because the source code contains __FILE__
at some place. This prevents binary reproducibility. However, some compilers
allow remapping of the __FILE__ value. If we detect the compiler is capable
of doing this, we replace the source path $(S) part of __FILE__ by a string "/kernel-source".
For example:

Is this not something we should do globally?

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170518/be455544/attachment-0002.html>


More information about the Openembedded-core mailing list