]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
scripts: Makefile.spl: Enable memory drivers to be built for SPL
authorRoger Quadros <rogerq@kernel.org>
Thu, 20 Oct 2022 13:30:47 +0000 (16:30 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 26 Oct 2022 19:21:11 +0000 (15:21 -0400)
Introduce CONFIG_SPL_MEMORY to allow Memory drivers to
be built for SPL.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/Kconfig
scripts/Makefile.spl

index b1b9e09dc8fb7c9c294b63c8f810da9d13a6b919..b738c749fff45f9e3c18fb686d6d4f907d0f90c0 100644 (file)
@@ -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
index 0b3a51da13bf5eded436d447ff0e5b6eccd7dc1f..15ac87286d5a07502dc345ec22cdcb2f60822932 100644 (file)
@@ -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/