From: Andrius Sirvys <andrius.sirvys@intel.com>
To: dev@dpdk.org
Cc: bruce.richardson@intel.com, Andrius Sirvys <andrius.sirvys@intel.com>
Subject: [dpdk-dev] [PATCH v5] build: move variable definition to top level
Date: Mon, 25 Mar 2019 10:34:59 +0000 [thread overview]
Message-ID: <20190325103459.3228-1-andrius.sirvys@intel.com> (raw)
Message-ID: <20190325103459.G1W2Yj3U072-NzTkJyBKVYkoH17EpHLmPGuymuwd-2g@z> (raw)
In-Reply-To: <1551958101-104223-1-git-send-email-andrius.sirvys@intel.com>
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>
---
v5: Rebased off of master branch
---
drivers/meson.build | 4 ++--
meson.build | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/meson.build b/drivers/meson.build
index 69d0556d3..8c76a5659 100644
--- a/drivers/meson.build
+++ b/drivers/meson.build
@@ -2,7 +2,7 @@
# Copyright(c) 2017 Intel Corporation
# Defines the order in which the drivers are buit.
-driver_classes = ['common',
+dpdk_driver_classes = ['common',
'bus',
'mempool', # depends on common and bus.
'net', # depends on common, bus and mempool.
@@ -20,7 +20,7 @@ endif
# specify -D_GNU_SOURCE unconditionally
default_cflags += '-D_GNU_SOURCE'
-foreach class:driver_classes
+foreach class:dpdk_driver_classes
drivers = []
std_deps = []
config_flag_fmt = '' # format string used to set the value in dpdk_conf
diff --git a/meson.build b/meson.build
index 69833de82..e945a27c3 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
--
2.17.1
next prev parent reply other threads:[~2019-03-25 10:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-05 16:29 [dpdk-dev] [PATCH v2] meson: fix building subdirectories separately Andrius Sirvys
2019-03-05 17:21 ` Bruce Richardson
2019-03-05 17:26 ` Bruce Richardson
2019-03-05 18:01 ` Ranjit Menon
2019-03-07 9:56 ` [dpdk-dev] [PATCH v3] build: move variable definition to top level Andrius Sirvys
2019-03-07 10:18 ` Bruce Richardson
2019-03-07 11:28 ` [dpdk-dev] [PATCH v4] " Andrius Sirvys
2019-03-24 22:59 ` Thomas Monjalon
2019-03-24 22:59 ` Thomas Monjalon
2019-03-25 10:34 ` Andrius Sirvys [this message]
2019-03-25 10:34 ` [dpdk-dev] [PATCH v5] " Andrius Sirvys
2019-03-26 22:16 ` Thomas Monjalon
2019-03-26 22:16 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190325103459.3228-1-andrius.sirvys@intel.com \
--to=andrius.sirvys@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).