summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-03-26 16:24:10 -0500
committerMatt DeVillier <matt.devillier@gmail.com>2023-04-10 15:13:01 +0000
commita358f2b4f77868abc6a6d1dfc8062f2210f1c8af (patch)
treeaf0dbc3d26ef6a2ea5522f748a01b5f9df5104e8
parent183d90e847c9c601000788805d8651312d894e1c (diff)
mb/google/brya: Compile gpio.c in SMM when needed
Without gpio.c compiled in, SMMSTORE will fail to initialize and hang. Add a conditional inclusion so gpio.c is compiled in SMM when SMMSTORE is selected. TEST=build/boot google/banshee with SMMSTORE support enabled Change-Id: If049cba98f13f060807058029306dcad2ada2d49 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74233 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tarun Tuli <taruntuli@google.com>
-rw-r--r--src/mainboard/google/brya/variants/baseboard/brask/Makefile.inc2
-rw-r--r--src/mainboard/google/brya/variants/baseboard/brya/Makefile.inc2
-rw-r--r--src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/baseboard/brask/Makefile.inc b/src/mainboard/google/brya/variants/baseboard/brask/Makefile.inc
index 8a4b2acfaa..53aaa41148 100644
--- a/src/mainboard/google/brya/variants/baseboard/brask/Makefile.inc
+++ b/src/mainboard/google/brya/variants/baseboard/brask/Makefile.inc
@@ -5,3 +5,5 @@ romstage-y += gpio.c
ramstage-y += gpio.c
ramstage-y += ramstage.c
+
+smm-$(CONFIG_SMMSTORE) += gpio.c
diff --git a/src/mainboard/google/brya/variants/baseboard/brya/Makefile.inc b/src/mainboard/google/brya/variants/baseboard/brya/Makefile.inc
index 8a4b2acfaa..53aaa41148 100644
--- a/src/mainboard/google/brya/variants/baseboard/brya/Makefile.inc
+++ b/src/mainboard/google/brya/variants/baseboard/brya/Makefile.inc
@@ -5,3 +5,5 @@ romstage-y += gpio.c
ramstage-y += gpio.c
ramstage-y += ramstage.c
+
+smm-$(CONFIG_SMMSTORE) += gpio.c
diff --git a/src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc b/src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc
index 8a4b2acfaa..53aaa41148 100644
--- a/src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc
+++ b/src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc
@@ -5,3 +5,5 @@ romstage-y += gpio.c
ramstage-y += gpio.c
ramstage-y += ramstage.c
+
+smm-$(CONFIG_SMMSTORE) += gpio.c