Commit 79ffe8c63af3f6b411bf8e1a034c110a7408824d
1 parent
6df41b1cf3
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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 <trini@konsulko.com>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
Makefile
... | ... | @@ -724,8 +724,7 @@ |
724 | 724 | libs-y += env/ |
725 | 725 | libs-$(CONFIG_API) += api/ |
726 | 726 | libs-$(CONFIG_HAS_POST) += post/ |
727 | -libs-y += test/ | |
728 | -libs-y += test/dm/ | |
727 | +libs-$(CONFIG_UNIT_TEST) += test/ test/dm/ | |
729 | 728 | libs-$(CONFIG_UT_ENV) += test/env/ |
730 | 729 | libs-$(CONFIG_UT_OVERLAY) += test/overlay/ |
731 | 730 |