summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2017-02-16 14:57:43 +0000
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-02-28 16:04:18 +0100
commit64592d97c1aebdb1f7a92c702d04ce269db08996 (patch)
treef36f1c8ab0c8fef7346de06d3211161e9dab426b /GNUmakefile
parent7d3b1ec47fae5b2d972e05d0ee37bb7a1731b085 (diff)
downloaddpdk-64592d97c1aebdb1f7a92c702d04ce269db08996.zip
dpdk-64592d97c1aebdb1f7a92c702d04ce269db08996.tar.gz
dpdk-64592d97c1aebdb1f7a92c702d04ce269db08996.tar.xz
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 <ferruh.yigit@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile3
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/rte.sdkroot.mk