aboutsummaryrefslogtreecommitdiff
path: root/support/scripts
diff options
context:
space:
mode:
authorGravatar Maxime Hadjinlian <maxime.hadjinlian@gmail.com>2015-07-14 13:36:26 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-14 18:10:58 +0200
commitf53d69614e58661877de74131f574e7f56226b45 (patch)
tree2e0be0fb1b30719242f5932493e15f7a66b5ca35 /support/scripts
parent7a6b83a211612ff95a1f5d35b2861ad5655ac8b1 (diff)
downloadbuildroot-f53d69614e58661877de74131f574e7f56226b45.tar.gz
buildroot-f53d69614e58661877de74131f574e7f56226b45.tar.bz2
graph-depends: Strip skeleton from dependency
skeleton being a mandatory dependency, we don't want all our packages to have a link back to that node, the graph would be awful. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/graph-depends9
1 files changed, 5 insertions, 4 deletions
diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index c26e1e06dc..5f77038241 100755
--- a/support/scripts/graph-depends
+++ b/support/scripts/graph-depends
@@ -271,16 +271,17 @@ def remove_transitive_deps(pkg,deps):
new_d.append(d[i])
return new_d
-# This function removes the dependency on the 'toolchain' package
-def remove_toolchain_deps(pkg,deps):
- return [p for p in deps[pkg] if not p == 'toolchain']
+# 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']]
# This functions trims down the dependency list of all packages.
# It applies in sequence all the dependency-elimination methods.
def remove_extra_deps(deps):
for pkg in list(deps.keys()):
if not pkg == 'all':
- deps[pkg] = remove_toolchain_deps(pkg,deps)
+ deps[pkg] = remove_mandatory_deps(pkg,deps)
for pkg in list(deps.keys()):
if not transitive or pkg == 'all':
deps[pkg] = remove_transitive_deps(pkg,deps)