Skip to content
Snippets Groups Projects
Commit 82f51817 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

kconfig: introduce kconfig files


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: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarYang Zhong <yang.zhong@intel.com>
Message-Id: <20190123065618.3520-27-yang.zhong@intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 06266ecd
No related branches found
No related tags found
No related merge requests found
# 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
config VIRTIO_9P
bool
# 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
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
config STM32F2XX_ADC
bool
config DP264
bool
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
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
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
config BLUETOOTH
bool
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
config EMPTY_SLOT
bool
config PTIMER
bool
config FITLOADER
bool
config PLATFORM_BUS
bool
config ARM11MPCORE
bool
config A9MPCORE
bool
config A15MPCORE
bool
config AXIS
bool
config ETRAXFS
bool
config EDID
bool
config FW_CFG_DMA
bool
config ADS7846
bool
config VGA_CIRRUS
bool
config G364FB
bool
config JAZZ_LED
bool
config PL110
bool
config SII9022
bool
config SSD0303
bool
config SSD0323
bool
config VGA_PCI
bool
config VGA_ISA
bool
config VGA_ISA_MM
bool
config VMWARE_VGA
bool
config BOCHS_DISPLAY
bool
config BLIZZARD
bool
config FRAMEBUFFER
bool
config MILKYMIST_TMU2
bool
config SM501
bool
config TCX
bool
config CG3
bool
config VGA
bool
config QXL
bool
config VIRTIO_GPU
bool
config VIRTIO_VGA
bool
config DPCD
bool
config RC4030
bool
config PL080
bool
config PL330
bool
config I82374
bool
config I8257
bool
config ZYNQ_DEVCFG
bool
config STP2000
bool
config MAX7310
bool
config PL061
bool
config GPIO_KEY
bool
config DINO
bool
config HYPERV
bool
config HYPERV_TESTDEV
bool
config I2C
bool
config SMBUS_EEPROM
bool
config DDC
bool
config VERSATILE_I2C
bool
config ACPI_SMBUS
bool
config BITBANG_I2C
bool
config IMX_I2C
bool
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment