summaryrefslogtreecommitdiffstats
path: root/src/security/intel/stm/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/security/intel/stm/Makefile.mk')
-rw-r--r--src/security/intel/stm/Makefile.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/security/intel/stm/Makefile.mk b/src/security/intel/stm/Makefile.mk
new file mode 100644
index 000000000000..90b7c188f7ff
--- /dev/null
+++ b/src/security/intel/stm/Makefile.mk
@@ -0,0 +1,21 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+# put the stm where it can be found
+
+cbfs-files-$(CONFIG_STM) += stm.bin
+stm.bin-file := $(CONFIG_STM_BINARY_FILE)
+stm.bin-type := raw
+
+ramstage-$(CONFIG_STM) += SmmStm.c
+ramstage-$(CONFIG_STM) += StmPlatformSmm.c
+ramstage-$(CONFIG_STM) += StmPlatformResource.c
+
+3rdparty/stm/Stm/build/StmPkg/Core/stm.bin: $(obj)/config.h
+ $(MAKE) -C src/security/intel/stm \
+ CONFIG_STM_TTYS0_BASE=$(CONFIG_STM_TTYS0_BASE) \
+ CONFIG_STM_HEAPSIZE=$(CONFIG_STM_HEAPSIZE) \
+ CONFIG_STM_CONSOLE_DEBUG=$(CONFIG_STM_CONSOLE_DEBUG) \
+ CONFIG_STM_CONSOLE_RELEASE=$(CONFIG_STM_CONSOLE_RELEASE) \
+ CONFIG_STM_GIT_BRANCH=$(CONFIG_STM_GIT_BRANCH) \
+ CONFIG_STM_STMPE_ENABLED=$(CONFIG_STM_STMPE_ENABLED) \
+ CONFIG_STM_CBMEM_CONSOLE=$(CONFIG_STM_CBMEM_CONSOLE)