common: Drop linux/delay.h from common header
[oweals/u-boot.git] / test / log / Makefile
index b0da8dee282b01832b0565e6e96a83c08f16151c..4c92550f6e382dd2d627f35e1411294f6fc27509 100644 (file)
@@ -1,7 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0+
 #
 # Copyright (c) 2017 Google, Inc
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
 
 obj-$(CONFIG_LOG_TEST) += log_test.o
+
+ifdef CONFIG_UT_LOG
+
+obj-y += test-main.o
+
+ifdef CONFIG_SANDBOX
+obj-$(CONFIG_LOG_SYSLOG) += syslog_test.o
+endif
+
+ifndef CONFIG_LOG
+obj-$(CONFIG_CONSOLE_RECORD) += nolog_test.o
+endif
+
+endif # CONFIG_UT_LOG