summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/bitbake2
-rw-r--r--bitbake/lib/bb/cooker.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index e55a538057..1cee33272c 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -148,7 +148,7 @@ Default BBFILES are the .bb files in the current directory.""")
148 parser.add_option("-e", "--environment", help = "show the global or per-package environment (this is what used to be bbread)", 148 parser.add_option("-e", "--environment", help = "show the global or per-package environment (this is what used to be bbread)",
149 action = "store_true", dest = "show_environment", default = False) 149 action = "store_true", dest = "show_environment", default = False)
150 150
151 parser.add_option("-g", "--graphviz", help = "emit the dependency trees of the specified packages in the dot syntax", 151 parser.add_option("-g", "--graphviz", help = "emit the dependency trees of the specified packages in the dot syntax, and the pn-buildlist to show the build list",
152 action = "store_true", dest = "dot_graph", default = False) 152 action = "store_true", dest = "dot_graph", default = False)
153 153
154 parser.add_option("-I", "--ignore-deps", help = """Assume these dependencies don't exist and are already provided (equivalent to ASSUME_PROVIDED). Useful to make dependency graphs more appealing""", 154 parser.add_option("-I", "--ignore-deps", help = """Assume these dependencies don't exist and are already provided (equivalent to ASSUME_PROVIDED). Useful to make dependency graphs more appealing""",
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 9b8d4b23e5..361bc88a9d 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -534,11 +534,15 @@ class BBCooker:
534 534
535 # Prints a flattened form of package-depends below where subpackages of a package are merged into the main pn 535 # Prints a flattened form of package-depends below where subpackages of a package are merged into the main pn
536 depends_file = file('pn-depends.dot', 'w' ) 536 depends_file = file('pn-depends.dot', 'w' )
537 buildlist_file = file('pn-buildlist', 'w' )
537 print("digraph depends {", file=depends_file) 538 print("digraph depends {", file=depends_file)
538 for pn in depgraph["pn"]: 539 for pn in depgraph["pn"]:
539 fn = depgraph["pn"][pn]["filename"] 540 fn = depgraph["pn"][pn]["filename"]
540 version = depgraph["pn"][pn]["version"] 541 version = depgraph["pn"][pn]["version"]
541 print('"%s" [label="%s %s\\n%s"]' % (pn, pn, version, fn), file=depends_file) 542 print('"%s" [label="%s %s\\n%s"]' % (pn, pn, version, fn), file=depends_file)
543 print("%s" % pn, file=buildlist_file)
544 buildlist_file.close()
545 logger.info("PN build list saved to 'pn-buildlist'")
542 for pn in depgraph["depends"]: 546 for pn in depgraph["depends"]:
543 for depend in depgraph["depends"][pn]: 547 for depend in depgraph["depends"][pn]:
544 print('"%s" -> "%s"' % (pn, depend), file=depends_file) 548 print('"%s" -> "%s"' % (pn, depend), file=depends_file)