<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Quite possibly. However, the biggest abuser of __FILE__ seems to be kernel and kernel_modules.<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF80446" style="direction: ltr;"><font size="2" color="#000000" face="Tahoma"><b>From:</b> Burton, Ross [ross.burton@intel.com]<br>
<b>Sent:</b> Thursday, May 18, 2017 2:10 PM<br>
<b>To:</b> Bystricky, Juro<br>
<b>Cc:</b> OE-core; Purdie, Richard; Joshua G Lock; Juro Bystricky<br>
<b>Subject:</b> Re: [PATCH] kernel.bbclass: improve reproducibility<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 18 May 2017 at 22:05, Juro Bystricky <span dir="ltr">
<<a href="mailto:juro.bystricky@intel.com" target="_blank">juro.bystricky@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div id=":1v4" class="a3s aXjCH m15c1d618d19a5dbb">Kernel and kernel modules contain hard coded paths referencing the host<br>
build system. This is usually because the source code contains __FILE__<br>
at some place. This prevents binary reproducibility. However, some compilers<br>
allow remapping of the __FILE__ value. If we detect the compiler is capable<br>
of doing this, we replace the source path $(S) part of __FILE__ by a string "/kernel-source".<br>
For example:<br>
</div>
</blockquote>
</div>
<br>
Is this not something we should do globally?</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Ross</div>
</div>
</div>
</div>
</div>
</body>
</html>