aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-05-08 13:46:53 -0600
committerTom Rini <trini@konsulko.com>2021-06-08 11:39:09 -0400
commit8d9bb98f8649222777193c6c161361e1ebd5e3fa (patch)
treedc2cf22474f2001685389a84941ebd67c33bc717 /test
parent58b4b7133aba6fbb2409a975478157f9277c2e91 (diff)
downloadu-boot-8d9bb98f8649222777193c6c161361e1ebd5e3fa.zip
u-boot-8d9bb98f8649222777193c6c161361e1ebd5e3fa.tar.gz
u-boot-8d9bb98f8649222777193c6c161361e1ebd5e3fa.tar.bz2
sandbox: log: Avoid build error with !CONFIG_LOG
The pr_cont_test.c test requires CONFIG_LOG since it directly accesses fields in global_data that require it. Move the test into the CONFIG_LOG condition to avoid build errors. Enable CONFIG_LOG on sandbox (not sandbox_spl, etc.) so that we still run this test. This requires resyncing of the configs. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/log/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/log/Makefile b/test/log/Makefile
index a3dedac..09f8689 100644
--- a/test/log/Makefile
+++ b/test/log/Makefile
@@ -17,6 +17,7 @@ endif
ifdef CONFIG_LOG
obj-y += pr_cont_test.o
obj-$(CONFIG_CONSOLE_RECORD) += cont_test.o
+obj-y += pr_cont_test.o
else
obj-$(CONFIG_CONSOLE_RECORD) += nolog_test.o
endif