soc/intel/{skl,apl}: don't run or even include SGX code if disabled
commitbc5f51fa56166e6c2dff273fefba4f3ea7e8bac2
authorMichael Niewöhner <foss@mniewoehner.de>
Mon, 18 Oct 2021 17:54:21 +0000 (18 19:54 +0200)
committerFelix Singer <felixsinger@posteo.net>
Wed, 20 Oct 2021 15:42:51 +0000 (20 15:42 +0000)
tree90ad1300c26ebcdee06ba0dbfb4d85b817e7cbe5
parente874375394f81eddeb7f9a89e1351cb71c43670c
soc/intel/{skl,apl}: don't run or even include SGX code if disabled

Do not run or include any code in case the user did not explicitly
enable SGX through `SOC_INTEL_COMMON_BLOCK_SGX_ENABLE`.

Also move the ifdef inside the ASL file.

Change-Id: Iec4d3d3eb2811ec14d29aff9601ba325724bc28c
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58426
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
src/soc/intel/apollolake/acpi.c
src/soc/intel/apollolake/acpi/southbridge.asl
src/soc/intel/common/acpi/sgx.asl
src/soc/intel/common/block/sgx/Makefile.inc
src/soc/intel/skylake/acpi/pch.asl