sandbox: log: Avoid build error with !CONFIG_LOG
authorSimon Glass <sjg@chromium.org>
Sat, 8 May 2021 19:46:53 +0000 (13:46 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 8 Jun 2021 15:39:09 +0000 (11:39 -0400)
commit8d9bb98f8649222777193c6c161361e1ebd5e3fa
treedc2cf22474f2001685389a84941ebd67c33bc717
parent58b4b7133aba6fbb2409a975478157f9277c2e91
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>
configs/sandbox_defconfig
test/log/Makefile