Skip to contentSkip to conversation

build: simplify logic for default library dependencies

PATCH Applied Bruce Richardson 2 participants 4 messages Jul 19, 2018 – Sep 17, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 1cc7e111f..4384813f8 100644
@@ -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
#1 lore raw

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.

I guess there is no specific benefit for 18.08.
It is deferred to 18.11 to avoid any risk.

#2 lore raw
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.

I guess there is no specific benefit for 18.08.
It is deferred to 18.11 to avoid any risk.

Sure, no problem.

#3 lore raw

08/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

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