[PATCH 1/1] test: pr_cont_test.o depends on CONFIG_LOG=y

Tom Rini trini at konsulko.com
Sat Jan 30 20:21:52 CET 2021


On Wed, Jan 27, 2021 at 12:09:46PM +0100, Heinrich Schuchardt wrote:

> Compiling wandboard_defconfig with CONFIG_UT_LOG=y leads to a build error:
> 
> test/log/pr_cont_test.c: In function ‘log_test_pr_cont’:
> test/log/pr_cont_test.c:28:14: error:
> ‘gd_t’ {aka ‘volatile struct global_data’} has no member named ‘log_fmt’
>   log_fmt = gd->log_fmt;
> 
> We do not want to let CONFIG_UT_LOG depend on CONFIG_LOG=y because we have
> tests for logging functions called with CONFIG_LOG=n.
> 
> Fix the build dependency.
> 
> Reported-by: Kever Yang <kever.yang at rock-chips.com>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

Applied to u-boot/master, thanks!

-- 
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/20210130/1fa3b4a3/attachment.sig>


More information about the U-Boot mailing list