]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/Kconfig
kconfig: introduce kconfig files
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 23 Jan 2019 06:56:00 +0000 (14:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Mar 2019 20:45:53 +0000 (21:45 +0100)
commit82f5181777ebe04b550fd94a1d04c49dd3f012dc
tree1b0e22a5ae76cb58bd1feb8ece3de38c2c54e3ed
parent06266ecda7127c1567414f75b5121900dcc64804
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: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20190123065618.3520-27-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
63 files changed:
Kconfig.host [new file with mode: 0644]
hw/9pfs/Kconfig [new file with mode: 0644]
hw/Kconfig [new file with mode: 0644]
hw/acpi/Kconfig [new file with mode: 0644]
hw/adc/Kconfig [new file with mode: 0644]
hw/alpha/Kconfig [new file with mode: 0644]
hw/arm/Kconfig [new file with mode: 0644]
hw/audio/Kconfig [new file with mode: 0644]
hw/block/Kconfig [new file with mode: 0644]
hw/bt/Kconfig [new file with mode: 0644]
hw/char/Kconfig [new file with mode: 0644]
hw/core/Kconfig [new file with mode: 0644]
hw/cpu/Kconfig [new file with mode: 0644]
hw/cris/Kconfig [new file with mode: 0644]
hw/display/Kconfig [new file with mode: 0644]
hw/dma/Kconfig [new file with mode: 0644]
hw/gpio/Kconfig [new file with mode: 0644]
hw/hppa/Kconfig [new file with mode: 0644]
hw/hyperv/Kconfig [new file with mode: 0644]
hw/i2c/Kconfig [new file with mode: 0644]
hw/i386/Kconfig [new file with mode: 0644]
hw/ide/Kconfig [new file with mode: 0644]
hw/input/Kconfig [new file with mode: 0644]
hw/intc/Kconfig [new file with mode: 0644]
hw/ipack/Kconfig [new file with mode: 0644]
hw/ipmi/Kconfig [new file with mode: 0644]
hw/isa/Kconfig [new file with mode: 0644]
hw/lm32/Kconfig [new file with mode: 0644]
hw/m68k/Kconfig [new file with mode: 0644]
hw/mem/Kconfig [new file with mode: 0644]
hw/microblaze/Kconfig [new file with mode: 0644]
hw/mips/Kconfig [new file with mode: 0644]
hw/misc/Kconfig [new file with mode: 0644]
hw/misc/macio/Kconfig [new file with mode: 0644]
hw/moxie/Kconfig [new file with mode: 0644]
hw/net/Kconfig [new file with mode: 0644]
hw/nios2/Kconfig [new file with mode: 0644]
hw/nvram/Kconfig [new file with mode: 0644]
hw/openrisc/Kconfig [new file with mode: 0644]
hw/pci-bridge/Kconfig [new file with mode: 0644]
hw/pci-host/Kconfig [new file with mode: 0644]
hw/pci/Kconfig [new file with mode: 0644]
hw/pcmcia/Kconfig [new file with mode: 0644]
hw/ppc/Kconfig [new file with mode: 0644]
hw/riscv/Kconfig [new file with mode: 0644]
hw/s390x/Kconfig [new file with mode: 0644]
hw/scsi/Kconfig [new file with mode: 0644]
hw/sd/Kconfig [new file with mode: 0644]
hw/sh4/Kconfig [new file with mode: 0644]
hw/smbios/Kconfig [new file with mode: 0644]
hw/sparc/Kconfig [new file with mode: 0644]
hw/sparc64/Kconfig [new file with mode: 0644]
hw/ssi/Kconfig [new file with mode: 0644]
hw/timer/Kconfig [new file with mode: 0644]
hw/tpm/Kconfig [new file with mode: 0644]
hw/tricore/Kconfig [new file with mode: 0644]
hw/unicore32/Kconfig [new file with mode: 0644]
hw/usb/Kconfig [new file with mode: 0644]
hw/vfio/Kconfig [new file with mode: 0644]
hw/virtio/Kconfig [new file with mode: 0644]
hw/watchdog/Kconfig [new file with mode: 0644]
hw/xtensa/Kconfig [new file with mode: 0644]
scripts/minikconf.py