aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-02 10:04:35 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-06 22:17:07 +0100
commit3e19b837f494a25552b50547862ee52e34589935 (patch)
tree9f7176d42eeb970f858824d4fcbd473ec8c4bf47 /support
parent659d45adc4cdc12cd1ac8dd31fb1e24508841828 (diff)
downloadbuildroot-3e19b837f494a25552b50547862ee52e34589935.tar.gz
buildroot-3e19b837f494a25552b50547862ee52e34589935.tar.bz2
support/scripts/graph-depends: introduce MANDATORY_DEPS array
This array will be re-used in another function in a follow-up commit, so it makes sense to factor it out. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/graph-depends7
1 files changed, 6 insertions, 1 deletions
diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index f1b6b142fb..d2b100f385 100755
--- a/support/scripts/graph-depends
+++ b/support/scripts/graph-depends
@@ -170,10 +170,15 @@ def remove_transitive_deps(pkg, deps):
return new_d
+# List of dependencies that all/many packages have, and that we want
+# to trim when generating the dependency graph.
+MANDATORY_DEPS = ['toolchain', '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 MANDATORY_DEPS]
# This function will check that there is no loop in the dependency chain