]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: Tidy up test building with SPL
authorSimon Glass <sjg@chromium.org>
Sat, 30 Apr 2022 06:56:47 +0000 (00:56 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 2 May 2022 13:58:13 +0000 (09:58 -0400)
We can in principle add tests to any SPL build, e.g. TPL or VPL. Update
the build rules to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile
scripts/Makefile.spl

index ccc87c3a5cd6fc9b75b48ef8ee18bf455f1c27ac..3f28333e644c1552d04f312f74454dc71cb7bbf1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -846,7 +846,7 @@ libs-y += drivers/usb/ulpi/
 ifdef CONFIG_POST
 libs-y += post/
 endif
-libs-$(CONFIG_UNIT_TEST) += test/
+libs-$(CONFIG_$(SPL_TPL_)UNIT_TEST) += test/
 libs-$(CONFIG_UT_ENV) += test/env/
 libs-$(CONFIG_UT_OPTEE) += test/optee/
 libs-$(CONFIG_UT_OVERLAY) += test/overlay/
index 6ad82cecfb7a6fcfcdb2ff12364b8d5ad696a823..30672a61179fecc7790e882b96d7cf0cfd7e1320 100644 (file)
@@ -109,7 +109,7 @@ libs-y += dts/
 libs-y += fs/
 libs-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/
 libs-$(CONFIG_SPL_NET) += net/
-libs-$(CONFIG_SPL_UNIT_TEST) += test/
+libs-$(CONFIG_$(SPL_TPL_)UNIT_TEST) += test/
 
 head-y         := $(addprefix $(obj)/,$(head-y))
 libs-y         := $(addprefix $(obj)/,$(libs-y))