summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorAndrius Sirvys <andrius.sirvys@intel.com>2019-03-25 10:34:59 +0000
committerThomas Monjalon <thomas@monjalon.net>2019-03-26 23:28:39 +0100
commit0ffbdd1d8d2ab43cff01d56ccd86c092aaa6df39 (patch)
treea532060057b4c52fd1898a4310c2aead156e7755 /meson.build
parentcf123ee7c4a20d17fc0b41e9bac5702bca057705 (diff)
downloaddpdk-0ffbdd1d8d2ab43cff01d56ccd86c092aaa6df39.zip
dpdk-0ffbdd1d8d2ab43cff01d56ccd86c092aaa6df39.tar.gz
dpdk-0ffbdd1d8d2ab43cff01d56ccd86c092aaa6df39.tar.xz
build: move variable for drivers to top level
If for debugging we disable the driver directory in the meson.build file, we get an error because the variable "driver_classes" does not exist. This is because driver_classes is only defined in the drivers/meson.build file. Defining driver_classes in dpdk/meson.build file will make it easier for compiling separate directories. In the process, we rename driver_classes to dpdk_driver_classes for consistency with the other variables. Signed-off-by: Andrius Sirvys <andrius.sirvys@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 69833de..e945a27 100644
--- a/meson.build
+++ b/meson.build
@@ -13,6 +13,7 @@ cc = meson.get_compiler('c')
dpdk_conf = configuration_data()
dpdk_libraries = []
dpdk_static_libraries = []
+dpdk_driver_classes = []
dpdk_drivers = []
dpdk_extra_ldflags = []
dpdk_app_link_libraries = []
@@ -105,7 +106,7 @@ endforeach
message(output_message + '\n')
output_message = '\n===============\nDrivers Enabled\n===============\n'
-foreach class:driver_classes
+foreach class:dpdk_driver_classes
class_drivers = get_variable(class + '_drivers')
output_message += '\n' + class + ':\n\t'
output_count = 0