[2/7,v2] support/graph-depends: also cut on host-skeleton

Message ID 97d44edd183389f6a31b3d85132bf6d6094a0f22.1525812011.git.yann.morin.1998@free.fr
State Changes Requested
Headers show
Series
  • [1/7,v2] support/graph-depends: ensure all packages get graphed
Related show

Commit Message

Yann E. MORIN May 8, 2018, 8:40 p.m.
host-skeleton is a dependency of almost all packages, except a very few.
As such, it clutters the dependency graph uselessly.

Do with it as we do for the skeleton: cut the dependency chains.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 support/scripts/graph-depends | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Patch

diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index 6ce90d872c..40a8eee5e9 100755
--- a/support/scripts/graph-depends
+++ b/support/scripts/graph-depends
@@ -175,10 +175,17 @@  def remove_transitive_deps(pkg, deps):
     return new_d
 
 
+CUT_ON_PACKAGES = [
+    'toolchain',
+    'skeleton',
+    'host-skeleton',
+]
+
+
 # This function removes the dependency on some 'mandatory' package, like the
 # 'toolchain' package, or the 'skeleton' package
 def remove_mandatory_deps(pkg, deps):
-    return [p for p in deps[pkg] if p not in ['toolchain', 'skeleton']]
+    return [p for p in deps[pkg] if p not in CUT_ON_PACKAGES]
 
 
 # This function will check that there is no loop in the dependency chain