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@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