DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] build: print out dependency names for clarity
@ 2019-09-19 15:07 Bruce Richardson
  2019-10-18 16:54 ` Burakov, Anatoly
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Richardson @ 2019-09-19 15:07 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson

To help developers to get the correct dependency name e.g. when creating a
new example that depends on a specific component, print out the dependency
name for each lib/driver as it is processed.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 drivers/meson.build | 3 +++
 lib/meson.build     | 6 ++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/meson.build b/drivers/meson.build
index 2ed2e9541..c3f52d785 100644
--- a/drivers/meson.build
+++ b/drivers/meson.build
@@ -157,6 +157,9 @@ foreach class:dpdk_driver_classes
 
 			set_variable('shared_@0@'.format(lib_name), shared_dep)
 			set_variable('static_@0@'.format(lib_name), static_dep)
+			dependency_name = ''.join(lib_name.split('rte_'))
+			message('drivers/@0@: Defining dependency "@1@"'.format(
+					drv_path, dependency_name))
 		endif # build
 	endforeach
 
diff --git a/lib/meson.build b/lib/meson.build
index e5ff83893..766d3b08e 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -154,7 +154,9 @@ foreach l:libraries
 			dpdk_static_libraries = [static_lib] + dpdk_static_libraries
 		endif # sources.length() > 0
 
-		set_variable('shared_' + libname, shared_dep)
-		set_variable('static_' + libname, static_dep)
+		set_variable('shared_rte_' + name, shared_dep)
+		set_variable('static_rte_' + name, static_dep)
+		message('lib/@0@: Defining dependency "@1@"'.format(
+				dir_name, name))
 	endif # if build
 endforeach
-- 
2.21.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] build: print out dependency names for clarity
  2019-09-19 15:07 [dpdk-dev] [PATCH] build: print out dependency names for clarity Bruce Richardson
@ 2019-10-18 16:54 ` Burakov, Anatoly
  2019-10-23 14:40   ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Burakov, Anatoly @ 2019-10-18 16:54 UTC (permalink / raw)
  To: Bruce Richardson, dev

On 19-Sep-19 4:07 PM, Bruce Richardson wrote:
> To help developers to get the correct dependency name e.g. when creating a
> new example that depends on a specific component, print out the dependency
> name for each lib/driver as it is processed.
> 
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---

Very nice change, +1!

Tested-by: Anatoly Burakov <anatoly.burakov@intel.com>

-- 
Thanks,
Anatoly

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] build: print out dependency names for clarity
  2019-10-18 16:54 ` Burakov, Anatoly
@ 2019-10-23 14:40   ` Thomas Monjalon
  2019-10-23 15:12     ` Bruce Richardson
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2019-10-23 14:40 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, Burakov, Anatoly

18/10/2019 18:54, Burakov, Anatoly:
> On 19-Sep-19 4:07 PM, Bruce Richardson wrote:
> > To help developers to get the correct dependency name e.g. when creating a
> > new example that depends on a specific component, print out the dependency
> > name for each lib/driver as it is processed.
> > 
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > ---
> 
> Very nice change, +1!
> 
> Tested-by: Anatoly Burakov <anatoly.burakov@intel.com>

Applied, thanks

It makes meson processing very verbose.
Is there way to filter meson messages?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] build: print out dependency names for clarity
  2019-10-23 14:40   ` Thomas Monjalon
@ 2019-10-23 15:12     ` Bruce Richardson
  0 siblings, 0 replies; 4+ messages in thread
From: Bruce Richardson @ 2019-10-23 15:12 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, Burakov, Anatoly

On Wed, Oct 23, 2019 at 04:40:28PM +0200, Thomas Monjalon wrote:
> 18/10/2019 18:54, Burakov, Anatoly:
> > On 19-Sep-19 4:07 PM, Bruce Richardson wrote:
> > > To help developers to get the correct dependency name e.g. when creating a
> > > new example that depends on a specific component, print out the dependency
> > > name for each lib/driver as it is processed.
> > > 
> > > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > > ---
> > 
> > Very nice change, +1!
> > 
> > Tested-by: Anatoly Burakov <anatoly.burakov@intel.com>
> 
> Applied, thanks
> 
> It makes meson processing very verbose.
> Is there way to filter meson messages?
> 
Well, we can look to make it build configurable, or only add them for
particular build types. However, I think for developers the info it
provides is really useful, so I'd like to keep it on by default initially
anyway.

A good feature to add in 20.02 might be to have settings like this
controlled as in make - where we check for the presence of a .git folder,
for example.

/Bruce

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-23 15:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-19 15:07 [dpdk-dev] [PATCH] build: print out dependency names for clarity Bruce Richardson
2019-10-18 16:54 ` Burakov, Anatoly
2019-10-23 14:40   ` Thomas Monjalon
2019-10-23 15:12     ` Bruce Richardson

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).