From: Roger Quadros Date: Thu, 20 Oct 2022 13:30:47 +0000 (+0300) Subject: scripts: Makefile.spl: Enable memory drivers to be built for SPL X-Git-Tag: v2025.01-rc5-pxa1908~1232^2~2 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=3a82cd26ee60ca31adb10f379b098add329acddb;p=u-boot.git scripts: Makefile.spl: Enable memory drivers to be built for SPL Introduce CONFIG_SPL_MEMORY to allow Memory drivers to be built for SPL. Signed-off-by: Roger Quadros Reviewed-by: Simon Glass --- diff --git a/common/spl/Kconfig b/common/spl/Kconfig index b1b9e09dc8..b738c749ff 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -796,6 +796,13 @@ config SPL_DM_MAILBOX this option to build the drivers in drivers/mailbox as part of SPL build. +config SPL_MEMORY + bool "Support Memory controller drivers" + help + Enable support for Memory Controller drivers within SPL. + These devices provide Memory bus interface to various devices like + SRAM, Ethernet adapters, FPGAs, etc. + config SPL_MMC bool "Support MMC" depends on MMC diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 0b3a51da13..15ac87286d 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -114,6 +114,7 @@ libs-$(CONFIG_PARTITIONS) += disk/ endif libs-y += drivers/ +libs-$(CONFIG_SPL_MEMORY) += drivers/memory/ libs-$(CONFIG_SPL_USB_GADGET) += drivers/usb/dwc3/ libs-$(CONFIG_SPL_USB_GADGET) += drivers/usb/cdns3/ libs-y += dts/