[PATCH] devres: Use the correct devres implementation in SPL builds

Tom Rini trini at konsulko.com
Sun May 8 17:30:37 CEST 2022


On Tue, Apr 19, 2022 at 10:14:04AM +0200, Alban Bedel wrote:

> When CONFIG_DEVRES is set, but CONFIG_SPL_DM is not set devres code is
> not included in the SPL. But dm/devres.h only check for CONFIG_DEVRES
> to select if the full implementation should be used. So if any devres
> function is used in the SPL with this config the link fails.
> 
> Fix the ifdef in the dm/devres.h to also check for CONFIG_SPL_DM in
> SPL builds.
> 
> Signed-off-by: Alban Bedel <alban.bedel at aerq.com>

I believe this has been fixed with:
commit 092d5c2a83b730844aeaa5ac300ddc7f13a75f49
Author: Simon Glass <sjg at chromium.org>
Date:   Sun Mar 27 14:26:19 2022 -0600

    dm: core: Allow devres to be disabled in SPL
    
    At present if devres is enabled in U-Boot proper it is enabled in SPL.
    We don't normally want it there, so disable it.
    
    Signed-off-by: Simon Glass <sjg at chromium.org>
    Tested-by: Angus Ainslie <angus at akkea.ca>

-- 
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/20220508/83a87a20/attachment.sig>


More information about the U-Boot mailing list