<p>Julius Werner has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26451">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Makefile.inc: Export CCACHE_EXTRAFILES and add __BUILD_DIR__ definition<br><br>This patch adds the CCACHE_EXTRAFILES variable to the list of exported<br>environment variables, which can be useful as a target-specific variable<br>to make ccache aware of extra dependencies that it cannot figure out on<br>its own. It also adds a CPPFLAGS parameter to define the __BUILD_DIR__<br>constant for the preprocessor so that the current output build directory<br>can be referenced in C code if necessary.<br><br>Change-Id: I4fdd08842972cfed8ef5e5a61ebf859c0571bcfb<br>Signed-off-by: Julius Werner <jwerner@chromium.org><br>---<br>M Makefile.inc<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/26451/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Makefile.inc b/Makefile.inc</span><br><span>index fcdc72c..c40cec8 100644</span><br><span>--- a/Makefile.inc</span><br><span>+++ b/Makefile.inc</span><br><span>@@ -60,6 +60,10 @@</span><br><span> objgenerated := $(obj)/generated</span><br><span> COREBOOT_EXPORTS += objgenerated</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+## CCACHE_EXTRAFILES can be set by individual rules to help CCACHE</span><br><span style="color: hsl(120, 100%, 40%);">+## discover dependencies it might not notice on its own (e.g. asm (".incbin")).</span><br><span style="color: hsl(120, 100%, 40%);">+COREBOOT_EXPORTS += CCACHE_EXTRAFILES</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #######################################################################</span><br><span> # root rule to resolve if in build mode (ie. configuration exists)</span><br><span> real-target: $(obj)/config.h coreboot files_added</span><br><span>@@ -380,6 +384,7 @@</span><br><span> CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/include</span><br><span> CPPFLAGS_common += -include $(src)/include/kconfig.h</span><br><span> CPPFLAGS_common += -I3rdparty</span><br><span style="color: hsl(120, 100%, 40%);">+CPPFLAGS_common += -D__BUILD_DIR__=\"$(obj)\"</span><br><span> </span><br><span> CFLAGS_common += -pipe -g -nostdinc -std=gnu11</span><br><span> CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26451">change 26451</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/26451"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I4fdd08842972cfed8ef5e5a61ebf859c0571bcfb </div>
<div style="display:none"> Gerrit-Change-Number: 26451 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Julius Werner <jwerner@chromium.org> </div>