summaryrefslogtreecommitdiffstats
path: root/support/scripts
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2014-06-08 16:03:45 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-06-08 16:42:58 +0200
commitb689264d38053c1fdcce69607debefb56632a769 (patch)
tree98766aaa41c63653a7b1420d782e2728831a7114 /support/scripts
parent0686dcf7a99746f236e6ebb5a9db7841f86bf5ad (diff)
downloadbuildroot-b689264d38053c1fdcce69607debefb56632a769.tar.gz
buildroot-b689264d38053c1fdcce69607debefb56632a769.zip
graph-depends: refactor with more colors
Do not use the same colors for toolchain, host and target packages. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr rephrase commit log] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/graph-depends21
1 files changed, 14 insertions, 7 deletions
diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index e2a5e1ebf6..443ac7d344 100755
--- a/support/scripts/graph-depends
+++ b/support/scripts/graph-depends
@@ -222,15 +222,22 @@ for dep in dependencies:
# Print the attributes of a node: label and fill-color
def print_attrs(pkg):
+ name = pkg_node_name(pkg)
if pkg == 'all':
- print "all [label = \"ALL\"]"
- print "all [color=lightblue,style=filled]"
- return
- print "%s [label = \"%s\"]" % (pkg_node_name(pkg), pkg)
- if mode == PKG_MODE and pkg == rootpkg:
- print "%s [color=lightblue,style=filled]" % pkg_node_name(rootpkg)
+ label = 'ALL'
+ else:
+ label = pkg
+ if pkg == 'all' or (mode == PKG_MODE and pkg == rootpkg):
+ color = 'lightblue'
else:
- print "%s [color=grey,style=filled]" % pkg_node_name(pkg)
+ if pkg.startswith('host') \
+ or pkg.startswith('toolchain') \
+ or pkg.startswith('rootfs'):
+ color = 'gainsboro'
+ else:
+ color = 'grey'
+ print "%s [label = \"%s\"]" % (name, label)
+ print "%s [color=%s,style=filled]" % (name, color)
# Print the dependency graph of a package
def print_pkg_deps(depth, pkg):
OpenPOWER on IntegriCloud