<p>Patrick Rudolph has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25721">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">rules: Define SIMPLE_DEVICE on x86 only<br><br>Make sure to define __SIMPLE_DEVICE__ on x86 only.<br>Fixes static.c devicetree compilation on non x86.<br><br>Change-Id: I75fb038681a8edf119415705af5da9f999fd8225<br>Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com><br>---<br>M src/include/rules.h<br>1 file changed, 2 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/21/25721/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/include/rules.h b/src/include/rules.h</span><br><span>index 0f21231..4e8a60f 100644</span><br><span>--- a/src/include/rules.h</span><br><span>+++ b/src/include/rules.h</span><br><span>@@ -133,7 +133,8 @@</span><br><span>  * be built with simple device model.</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#if defined(__PRE_RAM__) || ENV_SMM || ENV_POSTCAR</span><br><span style="color: hsl(120, 100%, 40%);">+#if IS_ENABLED(CONFIG_ARCH_X86) && \</span><br><span style="color: hsl(120, 100%, 40%);">+    defined(__PRE_RAM__) || ENV_SMM || ENV_POSTCAR</span><br><span> #define __SIMPLE_DEVICE__</span><br><span> #endif</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25721">change 25721</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/25721"/><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: I75fb038681a8edf119415705af5da9f999fd8225 </div>
<div style="display:none"> Gerrit-Change-Number: 25721 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Patrick Rudolph <patrick.rudolph@9elements.com> </div>