0056-sunxi-Add-missing-dependencies-to-Kconfig-selections.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From 9e12a7fd80276092da3a43b7dbaf572bad294419 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Thu, 4 Aug 2022 23:29:13 -0500
  4. Subject: [PATCH 56/90] sunxi: Add missing dependencies to Kconfig selections
  5. Some of the selected symbols have a user-visible dependency. Make the
  6. selections conditional on that dependency to avoid creating invalid
  7. configurations.
  8. Signed-off-by: Samuel Holland <[email protected]>
  9. ---
  10. arch/arm/Kconfig | 16 ++++++++--------
  11. 1 file changed, 8 insertions(+), 8 deletions(-)
  12. --- a/arch/arm/Kconfig
  13. +++ b/arch/arm/Kconfig
  14. @@ -1090,30 +1090,30 @@ config ARCH_SOCFPGA
  15. config ARCH_SUNXI
  16. bool "Support sunxi (Allwinner) SoCs"
  17. select BINMAN
  18. - select CMD_GPIO
  19. + select CMD_GPIO if GPIO
  20. select CMD_MMC if MMC
  21. select CMD_USB if DISTRO_DEFAULTS && USB_HOST
  22. select CLK
  23. select DM
  24. - select DM_ETH
  25. - select DM_GPIO
  26. + select DM_ETH if NET
  27. + select DM_GPIO if GPIO
  28. select DM_I2C if I2C
  29. + select DM_SCSI if BLK && SCSI
  30. + select DM_SERIAL if SERIAL
  31. select DM_SPI if SPI
  32. select DM_SPI_FLASH if SPI
  33. - select DM_SCSI if SCSI
  34. - select DM_SERIAL
  35. select GPIO_EXTRA_HEADER
  36. select OF_BOARD_SETUP
  37. select OF_CONTROL
  38. select OF_SEPARATE
  39. select PINCTRL
  40. - select SPECIFY_CONSOLE_INDEX
  41. + select SPECIFY_CONSOLE_INDEX if SERIAL
  42. select SPL_SEPARATE_BSS if SPL
  43. select SPL_STACK_R if SPL
  44. select SPL_SYS_MALLOC_SIMPLE if SPL
  45. select SPL_SYS_THUMB_BUILD if !ARM64
  46. - select SUNXI_GPIO
  47. - select SYS_NS16550
  48. + select SUNXI_GPIO if GPIO
  49. + select SYS_NS16550 if SERIAL
  50. select SYS_THUMB_BUILD if !ARM64
  51. select USB if DISTRO_DEFAULTS
  52. select USB_KEYBOARD if DISTRO_DEFAULTS && USB_HOST