linux/arch/powerpc/configs
Michael Ellerman 665d8d5876 powerpc/akebono: Fix unmet dependency errors
The AKEBONO config has various selects under it, including some with
user-selectable dependencies, which means those dependencies can be
disabled. This leads to warnings from Kconfig.

This can be seen with eg:

  $ make allnoconfig
  $ ./scripts/config --file build~/.config -k -e CONFIG_44x -k -e CONFIG_PPC_47x -e CONFIG_AKEBONO
  $ make olddefconfig

  WARNING: unmet direct dependencies detected for ATA
    Depends on [n]: HAS_IOMEM [=y] && BLOCK [=n]
    Selected by [y]:
    - AKEBONO [=y] && PPC_47x [=y]

  WARNING: unmet direct dependencies detected for NETDEVICES
    Depends on [n]: NET [=n]
    Selected by [y]:
    - AKEBONO [=y] && PPC_47x [=y]

  WARNING: unmet direct dependencies detected for ETHERNET
    Depends on [n]: NETDEVICES [=y] && NET [=n]
    Selected by [y]:
    - AKEBONO [=y] && PPC_47x [=y]

  WARNING: unmet direct dependencies detected for MMC_SDHCI
    Depends on [n]: MMC [=n] && HAS_DMA [=y]
    Selected by [y]:
    - AKEBONO [=y] && PPC_47x [=y]

  WARNING: unmet direct dependencies detected for MMC_SDHCI_PLTFM
    Depends on [n]: MMC [=n] && MMC_SDHCI [=y]
    Selected by [y]:
    - AKEBONO [=y] && PPC_47x [=y]

The problem is that AKEBONO is using select to enable things that are
not true dependencies, but rather things you probably want enabled in
an AKEBONO kernel. That is what a defconfig is for.

So drop those selects and instead move those symbols into the
defconfig. This fixes all the kconfig warnings, and the result of make
44x/akebono_defconfig is the same before and after the patch.

Reported-by: Yury Norov <yury.norov@gmail.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210201012503.940145-1-mpe@ellerman.id.au
2021-02-09 00:10:50 +11:00
..
40x powerpc/40x: Remove EP405 2020-05-28 23:24:35 +10:00
44x powerpc/akebono: Fix unmet dependency errors 2021-02-09 00:10:50 +11:00
52xx powerpc: configs: Cleanup old Kconfig options 2020-01-31 21:29:03 +11:00
83xx powerpc: configs: Cleanup old Kconfig options 2020-01-31 21:29:03 +11:00
85xx powerpc: switch 85xx defconfigs from legacy ide to libata 2020-10-06 23:22:24 +11:00
85xx-32bit.config
85xx-64bit.config
85xx-hw.config powerpc: Drop CONFIG_MTD_M25P80 in 85xx-hw.config 2020-07-06 23:11:04 +10:00
85xx-smp.config
86xx-hw.config powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
86xx-smp.config
adder875_defconfig powerpc/8xx: Drop CONFIG_8xx_COPYBACK option 2020-05-26 22:22:20 +10:00
altivec.config
amigaone_defconfig scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-02-24 14:59:01 -05:00
be.config powerpc/configs: Add a powernv_be_defconfig 2017-07-31 16:56:37 +10:00
book3s_32.config powerpc: Add ppc32_allmodconfig defconfig target 2018-07-24 22:03:15 +10:00
cell_defconfig powerpc/configs: remove obsolete CONFIG_INET_XFRM_MODE_* and CONFIG_INET6_XFRM_MODE_* 2019-11-13 16:58:06 +11:00
chrp32_defconfig scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-02-24 14:59:01 -05:00
corenet_base.config powerpc/configs: Rename foo_basic_defconfig to foo_base.config 2019-10-28 21:54:16 +11:00
debug.config powerpc/configs: Add debug config fragment 2019-10-28 21:54:16 +11:00
disable-werror.config powerpc: Add config fragment for disabling -Werror 2020-12-15 22:53:28 +11:00
dpaa.config powerpc/configs/dpaa: enable the Cortina PHY driver 2018-08-08 17:13:45 -05:00
ep88xc_defconfig powerpc/8xx: Drop CONFIG_8xx_COPYBACK option 2020-05-26 22:22:20 +10:00
ep8248e_defconfig powerpc: configs: Cleanup old Kconfig options 2020-01-31 21:29:03 +11:00
fsl-emb-nonhw.config powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
g5_defconfig USB: serial: keyspan_pda: clean up xircom/entrega support 2020-11-04 11:01:49 +01:00
gamecube_defconfig powerpc/configs: remove obsolete CONFIG_INET_XFRM_MODE_* and CONFIG_INET6_XFRM_MODE_* 2019-11-13 16:58:06 +11:00
guest.config virtio-blk: remove VIRTIO_BLK_F_SCSI support 2020-02-06 03:40:26 -05:00
holly_defconfig powerpc/configs: Remove CMDLINE_BOOL 2020-06-22 10:37:57 +10:00
le.config
linkstation_defconfig powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
maple_defconfig scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-02-24 14:59:01 -05:00
mgcoge_defconfig powerpc: configs: Cleanup old Kconfig options 2020-01-31 21:29:03 +11:00
mpc83xx_defconfig powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
mpc85xx_base.config powerpc/configs: Rename foo_basic_defconfig to foo_base.config 2019-10-28 21:54:16 +11:00
mpc86xx_base.config powerpc/configs: Rename foo_basic_defconfig to foo_base.config 2019-10-28 21:54:16 +11:00
mpc512x_defconfig powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
mpc866_ads_defconfig powerpc/8xx: Drop CONFIG_8xx_COPYBACK option 2020-05-26 22:22:20 +10:00
mpc885_ads_defconfig powerpc/8xx: Drop CONFIG_8xx_COPYBACK option 2020-05-26 22:22:20 +10:00
mpc5200_defconfig powerpc/sysdev: drop simple gpio 2019-11-21 15:41:34 +11:00
mpc7448_hpc2_defconfig powerpc/configs: Remove useless UEVENT_HELPER_PATH 2019-07-03 15:19:36 +10:00
mpc8272_ads_defconfig powerpc/configs: Remove useless UEVENT_HELPER_PATH 2019-07-03 15:19:36 +10:00
mvme5100_defconfig powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
pasemi_defconfig vgacon: remove software scrollback support 2020-09-14 10:06:15 -07:00
pmac32_defconfig powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
powernv_defconfig powerpc/configs: drop unused BACKLIGHT_GENERIC option 2020-12-08 22:03:37 +01:00
ppc6xx_defconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2020-12-15 16:18:23 -08:00
ppc40x_defconfig powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
ppc44x_defconfig powerpc: Remove Xilinx PPC405/PPC440 support 2020-05-28 23:24:34 +10:00
ppc64_defconfig powerpc/configs: Remove dead symbols 2020-07-29 21:08:06 +10:00
ppc64e_defconfig scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-02-24 14:59:01 -05:00
ppc64le.config powerpc/configs: Add ppc64le_allnoconfig target 2020-12-15 22:53:27 +11:00
pq2fads_defconfig powerpc/configs: Remove useless UEVENT_HELPER_PATH 2019-07-03 15:19:36 +10:00
ps3_defconfig powerpc/configs: Remove CMDLINE_BOOL 2020-06-22 10:37:57 +10:00
pseries_defconfig powerpc/configs: Add BLK_DEV_NVME to pseries_defconfig 2020-07-29 23:47:53 +10:00
security.config powerpc: add security.config, enforcing lockdown=integrity 2020-12-04 01:01:34 +11:00
skiroot_defconfig powerpc/configs: Remove CMDLINE_BOOL 2020-06-22 10:37:57 +10:00
storcenter_defconfig powerpc/configs: Remove CMDLINE_BOOL 2020-06-22 10:37:57 +10:00
tqm8xx_defconfig powerpc/8xx: Drop CONFIG_8xx_COPYBACK option 2020-05-26 22:22:20 +10:00
wii_defconfig powerpc/configs: remove obsolete CONFIG_INET_XFRM_MODE_* and CONFIG_INET6_XFRM_MODE_* 2019-11-13 16:58:06 +11:00