Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Greg Hackmann and committed by
Greg Kroah-Hartman
bd2f348d 92e963f5

+20 -3
+1 -2
drivers/platform/Kconfig
··· 4 4 if MIPS 5 5 source "drivers/platform/mips/Kconfig" 6 6 endif 7 - if GOLDFISH 7 + 8 8 source "drivers/platform/goldfish/Kconfig" 9 - endif 10 9 11 10 source "drivers/platform/chrome/Kconfig"
+18
drivers/platform/goldfish/Kconfig
··· 1 + menuconfig GOLDFISH 2 + bool "Platform support for Goldfish virtual devices" 3 + depends on X86_32 || X86_64 || ARM || ARM64 4 + ---help--- 5 + Say Y here to get to see options for the Goldfish virtual platform. 6 + This option alone does not add any kernel code. 7 + 8 + Unless you are building for the Android Goldfish emulator say N here. 9 + 10 + if GOLDFISH 11 + 12 + config GOLDFISH_BUS 13 + bool "Goldfish platform bus" 14 + ---help--- 15 + This is a virtual bus to host Goldfish Android Virtual Devices. 16 + 1 17 config GOLDFISH_PIPE 2 18 tristate "Goldfish virtual device for QEMU pipes" 3 19 ---help--- 4 20 This is a virtual device to drive the QEMU pipe interface used by 5 21 the Goldfish Android Virtual Device. 22 + 23 + endif # GOLDFISH
+1 -1
drivers/platform/goldfish/Makefile
··· 1 1 # 2 2 # Makefile for Goldfish platform specific drivers 3 3 # 4 - obj-$(CONFIG_GOLDFISH) += pdev_bus.o 4 + obj-$(CONFIG_GOLDFISH_BUS) += pdev_bus.o 5 5 obj-$(CONFIG_GOLDFISH_PIPE) += goldfish_pipe.o