summaryrefslogtreecommitdiffstats
path: root/drivers/platform/goldfish/Kconfig
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2016-01-06 14:04:13 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-01-28 23:34:36 -0800
commitbd2f348db5033b88b8b81caf58e7bdabf0b6961d (patch)
tree3c3ba897d57392a5692a00f6f16f187dabd9a6d0 /drivers/platform/goldfish/Kconfig
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
downloadblackbird-op-linux-bd2f348db5033b88b8b81caf58e7bdabf0b6961d.tar.gz
blackbird-op-linux-bd2f348db5033b88b8b81caf58e7bdabf0b6961d.zip
goldfish: refactor goldfish platform configs
On new virtual devices, the goldfish virtual bus can be replaced with autoprobing infrastructure like Device Tree. Refactor the goldfish kernel configs to better accommodate this. Move the goldfish platform into a menuconfig in the style of the chrome platform, and separate the goldfish bus into its own config option. Signed-off-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: Jin Qian <jinqian@android.com> [Corrected a tristate to bool] Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform/goldfish/Kconfig')
-rw-r--r--drivers/platform/goldfish/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/platform/goldfish/Kconfig b/drivers/platform/goldfish/Kconfig
index 635ef25cc722..2be762743592 100644
--- a/drivers/platform/goldfish/Kconfig
+++ b/drivers/platform/goldfish/Kconfig
@@ -1,5 +1,23 @@
+menuconfig GOLDFISH
+ bool "Platform support for Goldfish virtual devices"
+ depends on X86_32 || X86_64 || ARM || ARM64
+ ---help---
+ Say Y here to get to see options for the Goldfish virtual platform.
+ This option alone does not add any kernel code.
+
+ Unless you are building for the Android Goldfish emulator say N here.
+
+if GOLDFISH
+
+config GOLDFISH_BUS
+ bool "Goldfish platform bus"
+ ---help---
+ This is a virtual bus to host Goldfish Android Virtual Devices.
+
config GOLDFISH_PIPE
tristate "Goldfish virtual device for QEMU pipes"
---help---
This is a virtual device to drive the QEMU pipe interface used by
the Goldfish Android Virtual Device.
+
+endif # GOLDFISH
OpenPOWER on IntegriCloud