<p>Jonathan Neuschäfer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/23172">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">payloads/external/GRUB2: Pass the architecture to grub's configure script<br><br>This fixes the build on an ARM build machine, because GRUB2's build system<br>doesn't try to build *for* ARM anymore.<br><br>Change-Id: Ied7a5535cd93ffc2b69563a55e69dc7370db4793<br>Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>---<br>M payloads/external/GRUB2/Makefile<br>1 file changed, 7 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/23172/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/payloads/external/GRUB2/Makefile b/payloads/external/GRUB2/Makefile</span><br><span>index db15d46..e2d8293 100644</span><br><span>--- a/payloads/external/GRUB2/Makefile</span><br><span>+++ b/payloads/external/GRUB2/Makefile</span><br><span>@@ -24,6 +24,12 @@</span><br><span>                      git branch -f $(NAME-y) $(TAG-y) && \</span><br><span>                        git checkout $(NAME-y) || true</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ifeq ($(CONFIG_ARCH_X86),y)</span><br><span style="color: hsl(120, 100%, 40%);">+ARCH_TRIPLE=i386-linux-gnu</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+ARCH_TRIPLE=unsupported</span><br><span style="color: hsl(120, 100%, 40%);">+endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> grub2/build/config.h: $(CONFIG_DEP) | checkout</span><br><span>        echo "    CONFIG     GRUB2 $(NAME-y)"</span><br><span>      rm -rf grub2/build</span><br><span>@@ -31,7 +37,7 @@</span><br><span>       cd grub2 && ./autogen.sh</span><br><span>     cd grub2/build && ../configure CC="$(HOSTCC)" LD="$(LD)" \</span><br><span>       TARGET_CC="$(CC)" TARGET_OBJCOPY="$(OBJCOPY)" TARGET_STRIP="$(STRIP)" \</span><br><span style="color: hsl(0, 100%, 40%);">-   CFLAGS=-O2 TARGET_CFLAGS=-Os \</span><br><span style="color: hsl(120, 100%, 40%);">+        CFLAGS=-O2 TARGET_CFLAGS=-Os --host=$(ARCH_TRIPLE) \</span><br><span>         --with-platform=coreboot --enable-boot-time --disable-werror</span><br><span> </span><br><span> config: grub2/build/config.h checkout</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/23172">change 23172</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/23172"/><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: Ied7a5535cd93ffc2b69563a55e69dc7370db4793 </div>
<div style="display:none"> Gerrit-Change-Number: 23172 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>