Skip to contentSkip to conversation

x86/intel_mid: Fix the Kconfig for MID selection

PATCH In review Alan Cox 2 participants 3 messages Dec 5, 2011 – Dec 6, 2011

Subsystems (2)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 x86/intel_mid: Fix the Kconfig for MID selection

From: Alan Cox <[email protected]>

We could build all the bits to make generic MID work if you picked MID platform alone but that's really silly. Instead use select and two variables.

This looks a bit daft right now but once we add a Medfield selection it'll start to look a good deal more sensible.

---

 arch/x86/Kconfig |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
arch/x86/Kconfig +3 -2
index 4ee940c..b884f4c 100644
@@ -395,7 +395,7 @@ config X86_INTEL_CE
 	  This option compiles in support for the CE4100 SOC for settop
 	  boxes and media devices.
 
-config X86_INTEL_MID
+config X86_WANT_INTEL_MID
 	bool "Intel MID platform support"
 	depends on X86_32
 	depends on X86_EXTENDED_PLATFORM
@@ -404,7 +404,7 @@ config X86_INTEL_MID
 	  systems which do not have the PCI legacy interfaces (Moorestown,
 	  Medfield). If you are building for a PC class system say N here.
 
-if X86_INTEL_MID
+if X86_WANT_INTEL_MID
 
 config X86_MRST
        bool "Moorestown MID platform"
@@ -416,6 +416,7 @@ config X86_MRST
 	select SPI
 	select INTEL_SCU_IPC
 	select X86_PLATFORM_DEVICES
+	select X86_INTEL_MID
 	---help---
 	  Moorestown is Intel's Low Power Intel Architecture (LPIA) based Moblin
 	  Internet Device(MID) platform. Moorestown consists of two chips:
#1 lore raw
Commit-ID:  b4b547d311e01f276f267beeef8ac1cbb311f058
Gitweb:     http://git.kernel.org/tip/b4b547d311e01f276f267beeef8ac1cbb311f058
Author:     Alan Cox <[email protected]>
AuthorDate: Mon, 5 Dec 2011 23:14:39 +0000
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 6 Dec 2011 06:57:29 +0100

x86/intel_mid: Fix the Kconfig for MID selection

We could build all the bits to make generic MID work if you picked MID platform alone but that's really silly. Instead use select and two variables.

This looks a bit daft right now but once we add a Medfield selection it'll start to look a good deal more sensible.

---
 arch/x86/Kconfig |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
arch/x86/Kconfig +3 -2
index faf39a0..417883b 100644
@@ -390,7 +390,7 @@ config X86_INTEL_CE
 	  This option compiles in support for the CE4100 SOC for settop
 	  boxes and media devices.
 
-config X86_INTEL_MID
+config X86_WANT_INTEL_MID
 	bool "Intel MID platform support"
 	depends on X86_32
 	depends on X86_EXTENDED_PLATFORM
@@ -399,7 +399,7 @@ config X86_INTEL_MID
 	  systems which do not have the PCI legacy interfaces (Moorestown,
 	  Medfield). If you are building for a PC class system say N here.
 
-if X86_INTEL_MID
+if X86_WANT_INTEL_MID
 
 config X86_MRST
        bool "Moorestown MID platform"
@@ -411,6 +411,7 @@ config X86_MRST
 	select SPI
 	select INTEL_SCU_IPC
 	select X86_PLATFORM_DEVICES
+	select X86_INTEL_MID
 	---help---
 	  Moorestown is Intel's Low Power Intel Architecture (LPIA) based Moblin
 	  Internet Device(MID) platform. Moorestown consists of two chips:
#2 lore raw
In reply to Alan Cox
Commit-ID:  dd13752537d36cc6c145cb040f71ce7acda31e6e
Gitweb:     http://git.kernel.org/tip/dd13752537d36cc6c145cb040f71ce7acda31e6e
Author:     Alan Cox <[email protected]>
AuthorDate: Mon, 5 Dec 2011 23:14:39 +0000
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 6 Dec 2011 11:28:36 +0100

x86/intel_mid: Fix the Kconfig for MID selection

We currently fail to build on CONFIG_X86_INTEL_MID=y and CONFIG_X86_MRST unset.

We could build all the bits to make generic MID work if you picked MID platform alone but that's really silly. Instead use select and two variables.

This looks a bit daft right now but once we add a Medfield selection it'll start to look a good deal more sensible.

---
 arch/x86/Kconfig |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
arch/x86/Kconfig +3 -2
index cb9a104..5553f9f 100644
@@ -390,7 +390,7 @@ config X86_INTEL_CE
 	  This option compiles in support for the CE4100 SOC for settop
 	  boxes and media devices.
 
-config X86_INTEL_MID
+config X86_WANT_INTEL_MID
 	bool "Intel MID platform support"
 	depends on X86_32
 	depends on X86_EXTENDED_PLATFORM
@@ -399,7 +399,7 @@ config X86_INTEL_MID
 	  systems which do not have the PCI legacy interfaces (Moorestown,
 	  Medfield). If you are building for a PC class system say N here.
 
-if X86_INTEL_MID
+if X86_WANT_INTEL_MID
 
 config X86_MRST
        bool "Moorestown MID platform"
@@ -411,6 +411,7 @@ config X86_MRST
 	select SPI
 	select INTEL_SCU_IPC
 	select X86_PLATFORM_DEVICES
+	select X86_INTEL_MID
 	---help---
 	  Moorestown is Intel's Low Power Intel Architecture (LPIA) based Moblin
 	  Internet Device(MID) platform. Moorestown consists of two chips: