* [dpdk-dev] [PATCH] net/mvpp2: get MUSDK library path from a meson option
@ 2018-04-19 9:45 Tomasz Duszynski
2018-04-19 12:05 ` Bruce Richardson
2018-04-19 12:15 ` Bruce Richardson
0 siblings, 2 replies; 4+ messages in thread
From: Tomasz Duszynski @ 2018-04-19 9:45 UTC (permalink / raw)
To: dev; +Cc: bruce.richardson, dima, nsamsono, Tomasz Duszynski
Since not cluttering environment and keeping all relevant
settings local to the cross build is reasonable get
MUSDK library installation path from a meson option.
Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
---
drivers/net/mvpp2/meson.build | 2 +-
meson_options.txt | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mvpp2/meson.build b/drivers/net/mvpp2/meson.build
index 6ea13ee..e139889 100644
--- a/drivers/net/mvpp2/meson.build
+++ b/drivers/net/mvpp2/meson.build
@@ -3,7 +3,7 @@
# Copyright(c) 2018 Semihalf.
# All rights reserved.
-path = run_command('printenv', 'LIBMUSDK_PATH').stdout().strip()
+path = get_option('lib_musdk_dir')
lib_dir = path + '/lib'
inc_dir = path + '/include'
diff --git a/meson_options.txt b/meson_options.txt
index 1a674aa..c843278 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -8,6 +8,8 @@ option('include_subdir_arch', type: 'string', value: '',
description: 'subdirectory where to install arch-dependent headers')
option('kernel_dir', type: 'string', value: '',
description: 'path to the kernel for building kernel modules')
+option('lib_musdk_dir', type: 'string', value: '',
+ description: 'path to the MUSDK library installation directory')
option('machine', type: 'string', value: 'native',
description: 'set the target machine type')
option('max_lcores', type: 'string', value: '128',
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] net/mvpp2: get MUSDK library path from a meson option
2018-04-19 9:45 [dpdk-dev] [PATCH] net/mvpp2: get MUSDK library path from a meson option Tomasz Duszynski
@ 2018-04-19 12:05 ` Bruce Richardson
2018-04-19 12:06 ` Tomasz Duszynski
2018-04-19 12:15 ` Bruce Richardson
1 sibling, 1 reply; 4+ messages in thread
From: Bruce Richardson @ 2018-04-19 12:05 UTC (permalink / raw)
To: Tomasz Duszynski; +Cc: dev, dima, nsamsono
On Thu, Apr 19, 2018 at 11:45:38AM +0200, Tomasz Duszynski wrote:
> Since not cluttering environment and keeping all relevant
> settings local to the cross build is reasonable get
> MUSDK library installation path from a meson option.
>
> Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
> ---
> drivers/net/mvpp2/meson.build | 2 +-
> meson_options.txt | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/mvpp2/meson.build b/drivers/net/mvpp2/meson.build
> index 6ea13ee..e139889 100644
> --- a/drivers/net/mvpp2/meson.build
> +++ b/drivers/net/mvpp2/meson.build
> @@ -3,7 +3,7 @@
> # Copyright(c) 2018 Semihalf.
> # All rights reserved.
>
> -path = run_command('printenv', 'LIBMUSDK_PATH').stdout().strip()
> +path = get_option('lib_musdk_dir')
> lib_dir = path + '/lib'
> inc_dir = path + '/include'
>
> diff --git a/meson_options.txt b/meson_options.txt
> index 1a674aa..c843278 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -8,6 +8,8 @@ option('include_subdir_arch', type: 'string', value: '',
> description: 'subdirectory where to install arch-dependent headers')
> option('kernel_dir', type: 'string', value: '',
> description: 'path to the kernel for building kernel modules')
> +option('lib_musdk_dir', type: 'string', value: '',
> + description: 'path to the MUSDK library installation directory')
> option('machine', type: 'string', value: 'native',
> description: 'set the target machine type')
> option('max_lcores', type: 'string', value: '128',
> --
> 2.7.4
Looks good. Are you ok with me just squashing this into the original commit?
/Bruce
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] net/mvpp2: get MUSDK library path from a meson option
2018-04-19 12:05 ` Bruce Richardson
@ 2018-04-19 12:06 ` Tomasz Duszynski
0 siblings, 0 replies; 4+ messages in thread
From: Tomasz Duszynski @ 2018-04-19 12:06 UTC (permalink / raw)
To: Bruce Richardson; +Cc: Tomasz Duszynski, dev, dima, nsamsono
On Thu, Apr 19, 2018 at 01:05:11PM +0100, Bruce Richardson wrote:
> On Thu, Apr 19, 2018 at 11:45:38AM +0200, Tomasz Duszynski wrote:
> > Since not cluttering environment and keeping all relevant
> > settings local to the cross build is reasonable get
> > MUSDK library installation path from a meson option.
> >
> > Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
> > ---
> > drivers/net/mvpp2/meson.build | 2 +-
> > meson_options.txt | 2 ++
> > 2 files changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/mvpp2/meson.build b/drivers/net/mvpp2/meson.build
> > index 6ea13ee..e139889 100644
> > --- a/drivers/net/mvpp2/meson.build
> > +++ b/drivers/net/mvpp2/meson.build
> > @@ -3,7 +3,7 @@
> > # Copyright(c) 2018 Semihalf.
> > # All rights reserved.
> >
> > -path = run_command('printenv', 'LIBMUSDK_PATH').stdout().strip()
> > +path = get_option('lib_musdk_dir')
> > lib_dir = path + '/lib'
> > inc_dir = path + '/include'
> >
> > diff --git a/meson_options.txt b/meson_options.txt
> > index 1a674aa..c843278 100644
> > --- a/meson_options.txt
> > +++ b/meson_options.txt
> > @@ -8,6 +8,8 @@ option('include_subdir_arch', type: 'string', value: '',
> > description: 'subdirectory where to install arch-dependent headers')
> > option('kernel_dir', type: 'string', value: '',
> > description: 'path to the kernel for building kernel modules')
> > +option('lib_musdk_dir', type: 'string', value: '',
> > + description: 'path to the MUSDK library installation directory')
> > option('machine', type: 'string', value: 'native',
> > description: 'set the target machine type')
> > option('max_lcores', type: 'string', value: '128',
> > --
> > 2.7.4
>
> Looks good. Are you ok with me just squashing this into the original commit?
>
> /Bruce
>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Sure, thanks.
--
- Tomasz Duszyński
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] net/mvpp2: get MUSDK library path from a meson option
2018-04-19 9:45 [dpdk-dev] [PATCH] net/mvpp2: get MUSDK library path from a meson option Tomasz Duszynski
2018-04-19 12:05 ` Bruce Richardson
@ 2018-04-19 12:15 ` Bruce Richardson
1 sibling, 0 replies; 4+ messages in thread
From: Bruce Richardson @ 2018-04-19 12:15 UTC (permalink / raw)
To: Tomasz Duszynski; +Cc: dev, dima, nsamsono
On Thu, Apr 19, 2018 at 11:45:38AM +0200, Tomasz Duszynski wrote:
> Since not cluttering environment and keeping all relevant
> settings local to the cross build is reasonable get
> MUSDK library installation path from a meson option.
>
> Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
> ---
Applied and squashed to relevant commit on next-build.
Thanks,
/Bruce
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-04-19 12:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 9:45 [dpdk-dev] [PATCH] net/mvpp2: get MUSDK library path from a meson option Tomasz Duszynski
2018-04-19 12:05 ` Bruce Richardson
2018-04-19 12:06 ` Tomasz Duszynski
2018-04-19 12:15 ` 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).