]> git.droids-corp.org - dpdk.git/blobdiff - meson.build
app/testpmd: check if CRC strip offload supported
[dpdk.git] / meson.build
index f99f072ce3eaab6ccfff7e1769d3eabe4a987151..af134d34e4e20eedbb1e44a6debbb0a30403b9f4 100644 (file)
@@ -26,7 +26,6 @@ subdir('config')
 
 # build libs and drivers
 subdir('lib')
-subdir('kernel')
 subdir('buildtools')
 subdir('drivers')
 
@@ -40,6 +39,11 @@ if get_option('examples') != ''
        subdir('examples')
 endif
 
+# build kernel modules if enabled
+if get_option('enable_kmods')
+       subdir('kernel')
+endif
+
 # write the build config
 build_cfg = 'rte_build_config.h'
 configure_file(output: build_cfg,