Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # SPDX-License-Identifier: GPL-2.0+
  2. obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/
  3. obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/
  4. obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
  5. obj-$(CONFIG_$(SPL_TPL_)DM) += core/
  6. obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/
  7. obj-$(CONFIG_$(SPL_TPL_)GPIO_SUPPORT) += gpio/
  8. obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/
  9. obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset/
  10. obj-$(CONFIG_$(SPL_TPL_)FIRMWARE) +=firmware/
  11. obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
  12. obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
  13. obj-$(CONFIG_$(SPL_TPL_)LED) += led/
  14. obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
  15. obj-y += mtd/
  16. obj-$(CONFIG_$(SPL_)MULTIPLEXER) += mux/
  17. obj-$(CONFIG_$(SPL_TPL_)PCH_SUPPORT) += pch/
  18. obj-$(CONFIG_$(SPL_TPL_)PCI) += pci/
  19. obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
  20. obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
  21. obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
  22. obj-$(CONFIG_$(SPL_TPL_)RTC_SUPPORT) += rtc/
  23. obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
  24. obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
  25. obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
  26. obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/
  27. obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
  28. obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
  29. obj-$(CONFIG_$(SPL_)SYSINFO) += sysinfo/
  30. obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/
  31. obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += power/acpi_pmc/
  32. obj-$(CONFIG_XEN) += xen/
  33. obj-$(CONFIG_$(SPL_)FPGA) += fpga/
  34. ifndef CONFIG_TPL_BUILD
  35. ifdef CONFIG_SPL_BUILD
  36. obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
  37. obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/
  38. obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
  39. obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
  40. obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
  41. obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
  42. obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
  43. obj-$(CONFIG_$(SPL_)ALTERA_SDRAM) += ddr/altera/
  44. obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/
  45. obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
  46. obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
  47. obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
  48. obj-$(CONFIG_SPL_DM_RESET) += reset/
  49. obj-$(CONFIG_SPL_DMA) += dma/
  50. obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
  51. obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
  52. obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
  53. obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
  54. obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
  55. obj-$(CONFIG_SPL_USB_GADGET) += usb/common/
  56. obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
  57. obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
  58. obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
  59. obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
  60. obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
  61. obj-$(CONFIG_HAVE_BLOCK_DEVICE) += block/
  62. obj-$(CONFIG_SPL_THERMAL) += thermal/
  63. endif
  64. endif
  65. ifdef CONFIG_TPL_BUILD
  66. obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
  67. endif
  68. ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
  69. obj-y += adc/
  70. obj-y += ata/
  71. obj-y += bus/
  72. obj-$(CONFIG_DM_DEMO) += demo/
  73. obj-$(CONFIG_BIOSEMU) += bios_emulator/
  74. obj-y += block/
  75. obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
  76. obj-y += cache/
  77. obj-$(CONFIG_CPU) += cpu/
  78. obj-y += crypto/
  79. obj-$(CONFIG_FASTBOOT) += fastboot/
  80. obj-y += misc/
  81. obj-$(CONFIG_MMC) += mmc/
  82. obj-$(CONFIG_NVME) += nvme/
  83. obj-$(CONFIG_PCI_ENDPOINT) += pci_endpoint/
  84. obj-y += dfu/
  85. obj-$(CONFIG_PCH) += pch/
  86. obj-y += phy/allwinner/
  87. obj-y += phy/marvell/
  88. obj-y += phy/rockchip/
  89. obj-y += rtc/
  90. obj-y += scsi/
  91. obj-y += sound/
  92. obj-y += spmi/
  93. obj-y += video/
  94. obj-y += watchdog/
  95. obj-$(CONFIG_QE) += qe/
  96. obj-$(CONFIG_U_QE) += qe/
  97. obj-y += mailbox/
  98. obj-y += memory/
  99. obj-y += mtd/
  100. obj-y += pwm/
  101. obj-y += reset/
  102. obj-y += input/
  103. # SOC specific infrastructure drivers.
  104. obj-y += smem/
  105. obj-y += thermal/
  106. obj-$(CONFIG_TEE) += tee/
  107. obj-y += axi/
  108. obj-y += ufs/
  109. obj-$(CONFIG_W1) += w1/
  110. obj-$(CONFIG_W1_EEPROM) += w1-eeprom/
  111. obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
  112. obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/
  113. obj-$(CONFIG_DM_RNG) += rng/
  114. endif
  115. obj-y += soc/