summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/acpi/sgx.asl2
-rw-r--r--src/soc/intel/common/block/sgx/Makefile.inc2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/intel/common/acpi/sgx.asl b/src/soc/intel/common/acpi/sgx.asl
index c0b8040729..9aea7a8b09 100644
--- a/src/soc/intel/common/acpi/sgx.asl
+++ b/src/soc/intel/common/acpi/sgx.asl
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#if CONFIG(SOC_INTEL_COMMON_BLOCK_SGX_ENABLE)
Scope(\_SB)
{
// Secure Enclave memory
@@ -54,3 +55,4 @@ Scope(\_SB)
} // end EPC Device
} // End of Scope(\_SB)
+#endif
diff --git a/src/soc/intel/common/block/sgx/Makefile.inc b/src/soc/intel/common/block/sgx/Makefile.inc
index 3fa18d8873..ce3c436141 100644
--- a/src/soc/intel/common/block/sgx/Makefile.inc
+++ b/src/soc/intel/common/block/sgx/Makefile.inc
@@ -1 +1 @@
-ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SGX) += sgx.c
+ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_SGX_ENABLE) += sgx.c