[U-Boot] [PATCH v2 00/22] x86: kconfig clean up

Bin Meng bmeng.cn at gmail.com
Sun Jul 30 13:23:06 UTC 2017


This series cleans up x86 Kconfig files a lot.

The rules are:

- Select all x86 must have Kconfig options from
  X86 in arch/Kconfig
- Imply all DM uclass drivers from X86 in arch/Kconfig
- Select platform-dependent initialization hooks from
  arch/x86/cpu/<platform>/Kconfig
- Imply platform-specific drivers from
  arch/x86/cpu/<platform>/Kconfig
- Select board-specific initialization hooks from
  board/vendor/board/Kconfig
- Select specific SPI flash from board/vendor/board/Kconfig

This series is available at u-boot-x86/kconfig-working for testing.
Buildman testing has passed.

Changes in v2:
- sync defconfigs
- imply ENV_IS_IN_SPI_FLASH for ivybridge
- imply ENV_IS_IN_SPI_FLASH for broadwell
- imply more common drivers for coreboot
- imply ENV_IS_IN_SPI_FLASH for queensbay
- imply ENV_IS_IN_SPI_FLASH for quark
- imply ENV_IS_NOWHERE for qemu
- rebase on top of u-boot/master

Bin Meng (22):
  x86: kconfig: Select TIMER and X86_TSC_TIMER
  x86: kconfig: Select USE_PRIVATE_LIBGCC
  x86: kconfig: Select PCI and DM_PCI
  x86: kconfig: Imply HAVE_INTEL_ME in the platform Kconfig
  x86: kconfig: Let board select BOARD_EARLY_INIT_F
  x86: kconfig: Select ARCH_MISC_INIT in the platform Kconfig
  x86: kconfig: Select ARCH_EARLY_INIT_R in the platform Kconfig
  x86: kconfig: Imply ENABLE_MRC_CACHE in the platform Kconfig
  x86: kconfig: Select OF_CONTROL
  x86: kconfig: Imply DM uclass drivers
  x86: baytrail: kconfig: Imply platform specific drivers
  x86: ivybridge: kconfig: Imply platform specific drivers
  x86: broadwell: kconfig: Imply platform specific drivers
  x86: coreboot: kconfig: Imply drivers that are useful
  x86: queensbay: kconfig: Imply platform specific drivers
  x86: tangier: kconfig: Imply platform specific drivers
  x86: quark: kconfig: Imply platform specific drivers
  x86: qemu: kconfig: Imply platform specific drivers
  x86: qemu: Remove SPI flash from defconfigs
  x86: kconfig: Let board select SPI flash
  x86: kconfig: Move USB to platform Kconfig
  x86: Convert INTEL_ICH6_GPIO to Kconfig

 arch/Kconfig                                       | 22 ++++++++++++------
 arch/x86/cpu/baytrail/Kconfig                      | 16 +++++++++++++
 arch/x86/cpu/broadwell/Kconfig                     | 11 +++++++++
 arch/x86/cpu/broadwell/refcode.c                   | 17 +++++++++++++-
 arch/x86/cpu/coreboot/Kconfig                      | 13 +++++++++++
 arch/x86/cpu/coreboot/coreboot.c                   | 10 ---------
 arch/x86/cpu/efi/efi.c                             | 10 ---------
 arch/x86/cpu/ivybridge/Kconfig                     | 10 +++++++++
 arch/x86/cpu/qemu/Kconfig                          |  7 ++++++
 arch/x86/cpu/quark/Kconfig                         | 15 +++++++++++++
 arch/x86/cpu/queensbay/Kconfig                     | 15 +++++++++++++
 arch/x86/cpu/tangier/Kconfig                       |  8 +++++++
 arch/x86/include/asm/cpu.h                         | 12 ----------
 board/advantech/som-db5800-som-6867/Kconfig        |  2 ++
 .../som-db5800-som-6867/som-db5800-som-6867.c      |  5 -----
 board/congatec/conga-qeval20-qa3-e3845/Kconfig     |  2 ++
 .../conga-qeval20-qa3-e3845/conga-qeval20-qa3.c    |  5 -----
 board/coreboot/coreboot/Kconfig                    | 11 +++++++++
 board/coreboot/coreboot/Makefile                   |  2 +-
 board/coreboot/coreboot/coreboot.c                 | 14 ------------
 board/dfi/dfi-bt700/Kconfig                        |  2 ++
 board/efi/efi-x86/efi.c                            |  6 -----
 board/google/chromebook_link/Kconfig               |  1 +
 board/google/chromebook_link/link.c                | 16 -------------
 board/google/chromebook_samus/Kconfig              |  1 +
 board/google/chromebook_samus/samus.c              | 11 ---------
 board/google/chromebox_panther/Kconfig             |  1 +
 board/google/chromebox_panther/panther.c           | 11 ---------
 board/intel/bayleybay/Kconfig                      |  1 +
 board/intel/cougarcanyon2/Kconfig                  |  2 ++
 board/intel/crownbay/Kconfig                       |  2 ++
 board/intel/galileo/Kconfig                        |  1 +
 board/intel/galileo/galileo.c                      |  5 -----
 board/intel/minnowmax/Kconfig                      |  1 +
 board/intel/minnowmax/minnowmax.c                  |  5 -----
 common/Kconfig                                     |  2 --
 configs/bayleybay_defconfig                        | 25 ---------------------
 configs/chromebook_link64_defconfig                | 19 ++--------------
 configs/chromebook_link_defconfig                  | 18 +--------------
 configs/chromebook_samus_defconfig                 | 17 --------------
 configs/chromebox_panther_defconfig                | 19 +---------------
 ...conga-qeval20-qa3-e3845-internal-uart_defconfig | 23 -------------------
 configs/conga-qeval20-qa3-e3845_defconfig          | 23 -------------------
 configs/coreboot-x86_defconfig                     | 17 --------------
 configs/cougarcanyon2_defconfig                    | 15 ++-----------
 configs/crownbay_defconfig                         | 23 -------------------
 configs/dfi-bt700-q7x-151_defconfig                | 23 -------------------
 configs/edison_defconfig                           | 14 ------------
 configs/efi-x86_defconfig                          | 10 +--------
 configs/galileo_defconfig                          | 22 ------------------
 configs/minnowmax_defconfig                        | 26 ----------------------
 configs/qemu-x86_64_defconfig                      | 18 ---------------
 configs/qemu-x86_defconfig                         | 17 --------------
 configs/qemu-x86_efi_payload32_defconfig           | 17 --------------
 configs/qemu-x86_efi_payload64_defconfig           | 17 --------------
 configs/som-db5800-som-6867_defconfig              | 20 -----------------
 configs/theadorable-x86-dfi-bt700_defconfig        | 24 --------------------
 drivers/gpio/Kconfig                               |  6 +++++
 drivers/pci/Kconfig                                |  2 +-
 drivers/timer/Kconfig                              |  1 -
 include/configs/efi-x86.h                          |  1 -
 include/configs/qemu-x86.h                         |  3 ---
 include/configs/x86-common.h                       |  3 ---
 scripts/config_whitelist.txt                       |  1 -
 64 files changed, 168 insertions(+), 531 deletions(-)
 delete mode 100644 board/coreboot/coreboot/coreboot.c

-- 
2.9.2



More information about the U-Boot mailing list