From: Tom Rini Date: Sat, 8 Dec 2018 00:00:40 +0000 (-0500) Subject: test: Only descend into test/ when CONFIG_UNIT_TEST is enabled X-Git-Tag: v2025.01-rc5-pxa1908~3216^2~6 X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=79ffe8c63af3f6b411bf8e1a034c110a7408824d;p=u-boot.git test: Only descend into test/ when CONFIG_UNIT_TEST is enabled The contents of the test subdirectories only make sense when we have CONFIG_UNIT_TEST set. We will otherwise attempt to build code on for example sandbox that needs CONFIG_UNIT_TEST otherwise and rather than complicate the Makefiles simply leave them out when we can. Signed-off-by: Tom Rini --- diff --git a/Makefile b/Makefile index 5683714947..f69aa06169 100644 --- a/Makefile +++ b/Makefile @@ -724,8 +724,7 @@ libs-y += common/ libs-y += env/ libs-$(CONFIG_API) += api/ libs-$(CONFIG_HAS_POST) += post/ -libs-y += test/ -libs-y += test/dm/ +libs-$(CONFIG_UNIT_TEST) += test/ test/dm/ libs-$(CONFIG_UT_ENV) += test/env/ libs-$(CONFIG_UT_OVERLAY) += test/overlay/