[u-boot][PATCH v2 2/4] scripts: Makefile.spl: Enable memory drivers to be built for SPL

Tom Rini trini at konsulko.com
Tue Oct 18 19:40:25 CEST 2022


On Thu, Oct 06, 2022 at 04:23:58PM +0300, Roger Quadros wrote:
> We will need ti-gpmc driver for SPL. Allow memory drivers
> do be built for SPL.
> 
> Signed-off-by: Roger Quadros <rogerq at kernel.org>
> ---
>  scripts/Makefile.spl | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
> index 3bafeb4fe9..110076b22f 100644
> --- a/scripts/Makefile.spl
> +++ b/scripts/Makefile.spl
> @@ -114,6 +114,7 @@ libs-$(CONFIG_PARTITIONS) += disk/
>  endif
>  
>  libs-y += drivers/
> +libs-y += drivers/memory/
>  libs-$(CONFIG_SPL_USB_GADGET) += drivers/usb/dwc3/
>  libs-$(CONFIG_SPL_USB_GADGET) += drivers/usb/cdns3/
>  libs-y += dts/

This ends up being the wrong approach as it then pulls in
drivers/memory/stm32-fmc2-ebi.o on all of those platforms, in SPL, which
is not what's intended. We need an SPL_MEMORY symbol and then gate the
directory on that.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221018/179982ce/attachment.sig>


More information about the U-Boot mailing list