From 5f1da55b49ab99c59acdafadb37476ad84475745 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 20 Feb 2018 10:37:42 +0530 Subject: [PATCH] device: Include devicetree in SMM stage Allow bootblock to get access to the entire static device tree as other stages can access independently. TEST=SMM code now can access devicetree.cb variables. Change-Id: I59537c16f0a459e48d8b1efb5c1b196302f13381 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/23823 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh --- Makefile.inc | 1 + src/device/Makefile.inc | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.inc b/Makefile.inc index be658efdeb..b11f6e231e 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -550,6 +550,7 @@ romstage-y+=$(DEVICETREE_STATIC_C) verstage-y+=$(DEVICETREE_STATIC_C) bootblock-y+=$(DEVICETREE_STATIC_C) postcar-y+=$(DEVICETREE_STATIC_C) +smm-y+=$(DEVICETREE_STATIC_C) ####################################################################### # Clean up rules diff --git a/src/device/Makefile.inc b/src/device/Makefile.inc index a1d592051b..af5e7a9401 100644 --- a/src/device/Makefile.inc +++ b/src/device/Makefile.inc @@ -22,6 +22,7 @@ endif bootblock-y += device_simple.c postcar-y += device_simple.c +smm-y += device_simple.c verstage-y += device_simple.c romstage-y += device_simple.c romstage-$(CONFIG_PCI) += pci_early.c