path: root/GNUmakefile
diff options
authorFerruh Yigit <>2017-02-16 14:57:43 +0000
committerThomas Monjalon <>2017-02-28 16:04:18 +0100
commit64592d97c1aebdb1f7a92c702d04ce269db08996 (patch)
treef36f1c8ab0c8fef7346de06d3211161e9dab426b /GNUmakefile
parent7d3b1ec47fae5b2d972e05d0ee37bb7a1731b085 (diff)
mk: do not build tests by default
Don't build tests with default "make" command. Require explicit command to build tests because not everybody interested in running unit tests. Following changes done in make rules: "make test-build" <--- Added "make test" <--- Updated functionality (build + run basic tests) Now "make test" builds all tests and runs unit test (test). Thanks to dependency resolving, it is possible to call "make test" directly after config, "make test" will compile dependent components (lib and drivers, but not apps). And a new "make test-build" make rule added which will build tests but not run unit test. "make test-build" has same dependency resolving features with "make test" To include "test" folder into makesystem, existing ROOTDIRS- variable is used instead of hardcoding folder name into makefiles, current usage of ROOTDIRS* variables are: ROOTDIRS-y <-- root level folders prepared and compiled by default ROOTDIRS- <-- root level folders prepared but not compiled by default The preparation is required for dependency resolving and cleaning. Signed-off-by: Ferruh Yigit <> Acked-by: Bruce Richardson <>
Diffstat (limited to 'GNUmakefile')
1 files changed, 2 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b1a5b76..45b7fbb 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -40,6 +40,7 @@ export RTE_SDK
# directory list
-ROOTDIRS-y := buildtools lib drivers app test
+ROOTDIRS-y := buildtools lib drivers app
+ROOTDIRS- := test
include $(RTE_SDK)/mk/