build: simplify logic for default library dependencies
Checks
Commit Message
EAL is a standard dependency of all libraries, except for those built
before it. We can therefore simplify the logic by just checking if EAL
has been processed, and make it a standard dependency if so.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
lib/meson.build | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
Comments
19/07/2018 16:37, Bruce Richardson:
> EAL is a standard dependency of all libraries, except for those built
> before it. We can therefore simplify the logic by just checking if EAL
> has been processed, and make it a standard dependency if so.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
I guess there is no specific benefit for 18.08.
It is deferred to 18.11 to avoid any risk.
On Thu, Jul 26, 2018 at 03:55:56PM +0200, Thomas Monjalon wrote:
> 19/07/2018 16:37, Bruce Richardson:
> > EAL is a standard dependency of all libraries, except for those built
> > before it. We can therefore simplify the logic by just checking if EAL
> > has been processed, and make it a standard dependency if so.
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
>
> I guess there is no specific benefit for 18.08.
> It is deferred to 18.11 to avoid any risk.
>
Sure, no problem.
08/08/2018 17:58, Bruce Richardson:
> On Thu, Jul 26, 2018 at 03:55:56PM +0200, Thomas Monjalon wrote:
> > 19/07/2018 16:37, Bruce Richardson:
> > > EAL is a standard dependency of all libraries, except for those built
> > > before it. We can therefore simplify the logic by just checking if EAL
> > > has been processed, and make it a standard dependency if so.
> > >
> > > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> >
> > I guess there is no specific benefit for 18.08.
> > It is deferred to 18.11 to avoid any risk.
> >
> Sure, no problem.
Applied, thanks
@@ -45,12 +45,10 @@ foreach l:libraries
# use "deps" for internal DPDK dependencies, and "ext_deps" for
# external package/library requirements
ext_deps = []
- deps = ['eal'] # eal is standard dependency except for itself
- if l == 'kvargs'
- deps = []
- endif
- if l == 'eal'
- deps = ['kvargs']
+ deps = []
+ # eal is standard dependency once built
+ if dpdk_conf.has('RTE_LIBRTE_EAL')
+ deps += ['eal']
endif
dir_name = 'librte_' + l