[PATCH 1/1] log: uclass_get_name() depends on CONFIG_SPL_DM

Simon Glass sjg at chromium.org
Mon Jun 8 19:12:38 CEST 2020


Hi Heinrich,

On Mon, 8 Jun 2020 at 10:04, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> If CONFIG_SPL_DM=n and CONFIG_SPL_LOG=y a build error occurs:
>
> ld.bfd: common/built-in.o: in function `log_get_cat_name':
> common/log.c:48: undefined reference to `uclass_get_name'
> make[1]: *** [scripts/Makefile.spl:422: spl/u-boot-spl] Error 1
>
> Call uclass_get_name() only if DM is enabled.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  common/log.c | 4 ++++
>  1 file changed, 4 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list