Skip to content

Commit

Permalink
kconfig: introduce kconfig files
Browse files Browse the repository at this point in the history
The Kconfig files were generated mostly with this script:

  for i in `grep -ho CONFIG_[A-Z0-9_]* default-configs/* | sort -u`; do
    set fnord `git grep -lw $i -- 'hw/*/Makefile.objs' `
    shift
    if test $# = 1; then
      cat >> $(dirname $1)/Kconfig << EOF
config ${i#CONFIG_}
    bool

EOF
      git add $(dirname $1)/Kconfig
    else
      echo $i $*
    fi
  done
  sed -i '$d' hw/*/Kconfig
  for i in hw/*; do
    if test -d $i && ! test -f $i/Kconfig; then
      touch $i/Kconfig
      git add $i/Kconfig
    fi
  done

Whenever a symbol is referenced from multiple subdirectories, the
script prints the list of directories that reference the symbol.
These symbols have to be added manually to the Kconfig files.

Kconfig.host and hw/Kconfig were created manually.

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Yang Zhong <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Mar 7, 2019
1 parent 06266ec commit 82f5181
Show file tree
Hide file tree
Showing 63 changed files with 1,337 additions and 3 deletions.
26 changes: 26 additions & 0 deletions Kconfig.host
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# These are "proxy" symbols used to pass config-host.mak values
# down to Kconfig.

config KVM
bool

config LINUX
bool

config OPENGL
bool

config SPICE
bool

config TPM
bool

config VHOST_USER
bool

config XEN
bool

config VIRTFS
bool
2 changes: 2 additions & 0 deletions hw/9pfs/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config VIRTIO_9P
bool
68 changes: 68 additions & 0 deletions hw/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# devices Kconfig
source 9pfs/Kconfig
source acpi/Kconfig
source adc/Kconfig
source audio/Kconfig
source block/Kconfig
source bt/Kconfig
source char/Kconfig
source core/Kconfig
source display/Kconfig
source dma/Kconfig
source gpio/Kconfig
source hyperv/Kconfig
source i2c/Kconfig
source ide/Kconfig
source input/Kconfig
source intc/Kconfig
source ipack/Kconfig
source ipmi/Kconfig
source isa/Kconfig
source mem/Kconfig
source misc/Kconfig
source net/Kconfig
source nvram/Kconfig
source pci-bridge/Kconfig
source pci-host/Kconfig
source pcmcia/Kconfig
source pci/Kconfig
source scsi/Kconfig
source sd/Kconfig
source smbios/Kconfig
source ssi/Kconfig
source timer/Kconfig
source tpm/Kconfig
source usb/Kconfig
source virtio/Kconfig
source vfio/Kconfig
source watchdog/Kconfig

# arch Kconfig
source arm/Kconfig
source alpha/Kconfig
source cris/Kconfig
source hppa/Kconfig
source i386/Kconfig
source lm32/Kconfig
source m68k/Kconfig
source microblaze/Kconfig
source mips/Kconfig
source moxie/Kconfig
source nios2/Kconfig
source openrisc/Kconfig
source ppc/Kconfig
source riscv/Kconfig
source s390x/Kconfig
source sh4/Kconfig
source sparc/Kconfig
source sparc64/Kconfig
source tricore/Kconfig
source unicore32/Kconfig
source xtensa/Kconfig

# Symbols used by multiple targets
config XILINX
bool

config XILINX_AXI
bool
20 changes: 20 additions & 0 deletions hw/acpi/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config ACPI
bool

config ACPI_X86
bool

config ACPI_X86_ICH
bool

config ACPI_CPU_HOTPLUG
bool

config ACPI_MEMORY_HOTPLUG
bool

config ACPI_NVDIMM
bool

config ACPI_VMGENID
bool
2 changes: 2 additions & 0 deletions hw/adc/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config STM32F2XX_ADC
bool
2 changes: 2 additions & 0 deletions hw/alpha/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config DP264
bool
119 changes: 119 additions & 0 deletions hw/arm/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
config ARM_VIRT
bool

config DIGIC
bool

config EXYNOS4
bool

config HIGHBANK
bool

config INTEGRATOR
bool

config MAINSTONE
bool

config MUSICPAL
bool

config NETDUINO2
bool

config NSERIES
bool

config OMAP
bool

config PXA2XX
bool

config REALVIEW
bool

config STELLARIS
bool

config STRONGARM
bool

config VERSATILE
bool

config ZYNQ
bool

config ARM_V7M
bool

config ALLWINNER_A10
bool

config RASPI
bool

config STM32F205_SOC
bool

config XLNX_ZYNQMP_ARM
bool

config XLNX_VERSAL
bool

config FSL_IMX25
bool

config FSL_IMX31
bool

config FSL_IMX6
bool

config ASPEED_SOC
bool

config MPS2
bool

config FSL_IMX7
bool

config ARM_SMMUV3
bool

config FSL_IMX6UL
bool

config NRF51_SOC
bool

config MSF2
bool

config ZAURUS
bool

config A9MPCORE
bool

config A15MPCORE
bool

config ARM11MPCORE
bool

config ARMSSE
bool

config ARMSSE_CPUID
bool

config ARMSSE_MHU
bool

config MUSCA
bool
35 changes: 35 additions & 0 deletions hw/audio/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
config SB16
bool

config ES1370
bool

config AC97
bool

config ADLIB
bool

config GUS
bool

config CS4231A
bool

config HDA
bool

config PCSPK
bool

config WM8750
bool

config PL041
bool

config CS4231
bool

config MARVELL_88W8618
bool
29 changes: 29 additions & 0 deletions hw/block/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
config FDC
bool

config SSI_M25P80
bool

config NAND
bool

config PFLASH_CFI01
bool

config PFLASH_CFI02
bool

config ECC
bool

config ONENAND
bool

config NVME_PCI
bool

config VIRTIO_BLK
bool

config VHOST_USER_BLK
bool
2 changes: 2 additions & 0 deletions hw/bt/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config BLUETOOTH
bool
32 changes: 32 additions & 0 deletions hw/char/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
config ESCC
bool

config PARALLEL
bool

config PL011
bool

config SERIAL
bool

config SERIAL_ISA
bool

config SERIAL_PCI
bool

config VIRTIO_SERIAL
bool

config STM32F2XX_USART
bool

config CMSDK_APB_UART
bool

config SCLPCONSOLE
bool

config TERMINAL3270
bool
11 changes: 11 additions & 0 deletions hw/core/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
config EMPTY_SLOT
bool

config PTIMER
bool

config FITLOADER
bool

config PLATFORM_BUS
bool
8 changes: 8 additions & 0 deletions hw/cpu/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
config ARM11MPCORE
bool

config A9MPCORE
bool

config A15MPCORE
bool
5 changes: 5 additions & 0 deletions hw/cris/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
config AXIS
bool

config ETRAXFS
bool
Loading

0 comments on commit 82f5181

Please sign in to comment.