]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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)
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

index bdbf714e2bd9fc63f6f0722f6713d88cefc39451..60cdad108480aa77fbd8cc8f4ae7545cc70f8614 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_CONSOLE_RECORD=y
 CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000
 CONFIG_PRE_CONSOLE_BUFFER=y
+CONFIG_LOG=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_MISC_INIT_F=y
 CONFIG_STACKPROTECTOR=y
index a3dedace043b0786998cc92dbfaeee94ebb34177..09f8689d07072bf8a176859c4490aeb6cd827110 100644 (file)
@@ -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