security/intel: Hide Intel submenu when INTEL TXT is disabled

An empty submenu Intel is displayed in security menu when INTEL_TXT is
disabled.
Enable submenu Intel only when INTEL_TXT is enabled.

BUG=N/A
TEST=build

Change-Id: Iff1d84ff60a15259b60c6205a63a27ecb26346a3
Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36852
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Wim Vervoorn 2019-11-14 14:42:24 +01:00 committed by Philipp Deppenwiese
parent d577726460
commit dd0dc1ac92
2 changed files with 4 additions and 4 deletions

View File

@ -13,8 +13,4 @@
## GNU General Public License for more details.
##
menu "Intel"
source "src/security/intel/txt/Kconfig"
endmenu # Intel

View File

@ -26,6 +26,8 @@ config INTEL_TXT
if INTEL_TXT
menu "Intel"
config INTEL_TXT_BIOSACM_FILE
string "BIOS ACM file"
default "3rdparty/blobs/soc/intel/fsp_broadwell_de/biosacm.bin" if SOC_INTEL_FSP_BROADWELL_DE
@ -51,4 +53,6 @@ config INTEL_TXT_BIOSACM_ALIGNMENT
Exceptions are Ivy- and Sandy Bridge with 64KB and Purely with 256KB
alignment size. Please overwrite it SoC specific.
endmenu # Intel
endif