<p>Nico Huber has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20991">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">payloads/external/GRUB2: Only rebuild on config changes<br><br>Change-Id: I376eea9a3e02b03010fc5c5a05199ea7b2813220<br>Signed-off-by: Nico Huber <nico.h@gmx.de><br>---<br>M payloads/external/GRUB2/Makefile<br>M payloads/external/Makefile.inc<br>2 files changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/20991/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/payloads/external/GRUB2/Makefile b/payloads/external/GRUB2/Makefile<br>index dee7f69..4a0a491 100644<br>--- a/payloads/external/GRUB2/Makefile<br>+++ b/payloads/external/GRUB2/Makefile<br>@@ -22,7 +22,7 @@<br>                     git branch -f $(NAME-y) $(TAG-y) && \<br>                         git checkout $(NAME-y) || true<br> <br>-config: checkout<br>+grub2/build/config.h: $(CONFIG_DEP) | checkout<br>         echo "    CONFIG     GRUB2 $(NAME-y)"<br>       rm -rf grub2/build<br>    mkdir grub2/build<br>@@ -32,6 +32,8 @@<br>  CFLAGS=-O2 TARGET_CFLAGS=-Os \<br>        --with-platform=coreboot --enable-boot-time --disable-werror<br> <br>+config: grub2/build/config.h checkout<br>+<br> grub2: config<br>    echo "    MAKE       GRUB2 $(NAME-y)"<br>       $(MAKE) -C grub2/build<br>diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc<br>index fb50604..0a9b3d6 100644<br>--- a/payloads/external/Makefile.inc<br>+++ b/payloads/external/Makefile.inc<br>@@ -152,11 +152,12 @@<br> <br> # Grub<br> <br>-grub2:<br>+grub2: $(obj)/config.h<br>       $(MAKE) -C payloads/external/GRUB2 \<br>                  HOSTCC="$(HOSTCC)" \<br>                        CC="$(CC_x86_32)" LD="$(LD_x86_32)" \<br>                     OBJCOPY="$(OBJCOPY_x86_32)" STRIP="$(STRIP_x86_32)" \<br>+                    CONFIG_DEP="$(abspath $(obj)/config.h)" \<br>                   CONFIG_GRUB2_MASTER=$(CONFIG_GRUB2_MASTER) \<br>                  CONFIG_GRUB2_REVISION=$(CONFIG_GRUB2_REVISION) \<br>                      CONFIG_GRUB2_REVISION_ID=$(CONFIG_GRUB2_REVISION_ID) \<br></pre><p>To view, visit <a href="https://review.coreboot.org/20991">change 20991</a>. To unsubscribe, 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/20991"/><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: I376eea9a3e02b03010fc5c5a05199ea7b2813220 </div>
<div style="display:none"> Gerrit-Change-Number: 20991 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nico Huber <nico.h@gmx.de> </div>