build: simplify logic for default library dependencies
Subsystems (2)
PATCH 1/1 build: simplify logic for default library dependencies
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.
--- lib/meson.build | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
lib/meson.build +4 -6
@@ -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
Signature · 1 line
2.17.1
19/07/2018 16:37, Bruce Richardson:
Quoted 5 lines
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 <[email protected]>
I guess there is no specific benefit for 18.08.
It is deferred to 18.11 to avoid any risk.
Quoted 10 lines · Thomas Monjalon
19/07/2018 16:37, Bruce Richardson:
Quoted 5 lines
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 <[email protected]>I guess there is no specific benefit for 18.08.
It is deferred to 18.11 to avoid any risk.
Sure, no problem.
Thomas Monjalon
Applied08/08/2018 17:58, Bruce Richardson:
Quoted 6 lines · Thomas Monjalon
Quoted 5 lines
19/07/2018 16:37, Bruce Richardson:
Quoted 4 lines
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.
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Bruce Richardson <[email protected]>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