Skip to contentSkip to conversation

intel_txt: Add more explicit dependencies for CONFIG_INTEL_TXT

PATCH Superseded Shane Wang 2 participants 2 messages Jan 25, 2011

Subsystems (2)
lore
Share & tools
lore

Shane Wang

author
#0 lore raw

PATCH 1/1 intel_txt: Add more explicit dependencies for CONFIG_INTEL_TXT

This patch is to follow the recommended way in kconfig-language.txt to use HAVE_INTEL_TXT, so to add more explicit dependencies for CONFIG_INTEL_TXT.

---
 arch/x86/Kconfig |    5 +----
 security/Kconfig |    5 ++++-
 2 files changed, 5 insertions(+), 5 deletions(-)
arch/x86/Kconfig +1 -4
diff -r 2ec3d14a1901 arch/x86/Kconfig
@@ -65,6 +65,7 @@
 	select HAVE_SPARSE_IRQ
 	select GENERIC_IRQ_PROBE
 	select GENERIC_PENDING_IRQ if SMP
+	select HAVE_INTEL_TXT
 
 config INSTRUCTION_DECODER
 	def_bool (KPROBES || PERF_EVENTS)
@@ -199,10 +200,6 @@
 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
 	def_bool y
 
-config HAVE_INTEL_TXT
-	def_bool y
-	depends on EXPERIMENTAL && DMAR && ACPI
-
 config USE_GENERIC_SMP_HELPERS
 	def_bool y
 	depends on SMP
security/Kconfig +4 -1
diff -r 2ec3d14a1901 security/Kconfig
@@ -103,9 +103,12 @@
 	  implement pathname based access controls.
 	  If you are unsure how to answer this question, answer N.
 
+config HAVE_INTEL_TXT
+	bool
+
 config INTEL_TXT
 	bool "Enable Intel(R) Trusted Execution Technology (Intel(R) TXT)"
-	depends on HAVE_INTEL_TXT
+	depends on HAVE_INTEL_TXT && EXPERIMENTAL && DMAR && ACPI
 	help
 	  This option enables support for booting the kernel with the
 	  Trusted Boot (tboot) module. This will utilize