[coreboot-gerrit] Change in coreboot[master]: rules: Define SIMPLE_DEVICE on x86 only
Patrick Rudolph (Code Review)
gerrit at coreboot.org
Wed Apr 18 10:36:41 CEST 2018
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/25721
Change subject: rules: Define SIMPLE_DEVICE on x86 only
......................................................................
rules: Define SIMPLE_DEVICE on x86 only
Make sure to define __SIMPLE_DEVICE__ on x86 only.
Fixes static.c devicetree compilation on non x86.
Change-Id: I75fb038681a8edf119415705af5da9f999fd8225
Signed-off-by: Patrick Rudolph <patrick.rudolph at 9elements.com>
---
M src/include/rules.h
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/25721/1
diff --git a/src/include/rules.h b/src/include/rules.h
index 0f21231..4e8a60f 100644
--- a/src/include/rules.h
+++ b/src/include/rules.h
@@ -133,7 +133,8 @@
* be built with simple device model.
*/
-#if defined(__PRE_RAM__) || ENV_SMM || ENV_POSTCAR
+#if IS_ENABLED(CONFIG_ARCH_X86) && \
+ defined(__PRE_RAM__) || ENV_SMM || ENV_POSTCAR
#define __SIMPLE_DEVICE__
#endif
--
To view, visit https://review.coreboot.org/25721
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I75fb038681a8edf119415705af5da9f999fd8225
Gerrit-Change-Number: 25721
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph at 9elements.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180418/0e7f4c96/attachment.html>
More information about the coreboot-gerrit
mailing list