mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-06 12:53:21 +09:00
![Heinrich Schuchardt](/assets/img/avatar_default.png)
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@rock-chips.com> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
25 lines
474 B
Makefile
25 lines
474 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (c) 2017 Google, Inc
|
|
|
|
obj-$(CONFIG_LOG_TEST) += log_test.o
|
|
obj-$(CONFIG_CMD_LOG) += log_filter.o
|
|
|
|
ifdef CONFIG_UT_LOG
|
|
|
|
obj-y += test-main.o
|
|
|
|
ifdef CONFIG_SANDBOX
|
|
obj-$(CONFIG_LOG_SYSLOG) += syslog_test.o
|
|
obj-$(CONFIG_LOG_SYSLOG) += syslog_test_ndebug.o
|
|
endif
|
|
|
|
ifdef CONFIG_LOG
|
|
obj-y += pr_cont_test.o
|
|
obj-$(CONFIG_CONSOLE_RECORD) += cont_test.o
|
|
else
|
|
obj-$(CONFIG_CONSOLE_RECORD) += nolog_test.o
|
|
endif
|
|
|
|
endif # CONFIG_UT_LOG
|