diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 0607fcc708..e46868ddd0 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -919,6 +919,10 @@ class BBCooker: | |||
919 | os.unlink('package-depends.dot') | 919 | os.unlink('package-depends.dot') |
920 | except FileNotFoundError: | 920 | except FileNotFoundError: |
921 | pass | 921 | pass |
922 | try: | ||
923 | os.unlink('recipe-depends.dot') | ||
924 | except FileNotFoundError: | ||
925 | pass | ||
922 | 926 | ||
923 | with open('task-depends.dot', 'w') as f: | 927 | with open('task-depends.dot', 'w') as f: |
924 | f.write("digraph depends {\n") | 928 | f.write("digraph depends {\n") |
@@ -932,27 +936,6 @@ class BBCooker: | |||
932 | f.write("}\n") | 936 | f.write("}\n") |
933 | logger.info("Task dependencies saved to 'task-depends.dot'") | 937 | logger.info("Task dependencies saved to 'task-depends.dot'") |
934 | 938 | ||
935 | with open('recipe-depends.dot', 'w') as f: | ||
936 | f.write("digraph depends {\n") | ||
937 | pndeps = {} | ||
938 | for task in sorted(depgraph["tdepends"]): | ||
939 | (pn, taskname) = task.rsplit(".", 1) | ||
940 | if pn not in pndeps: | ||
941 | pndeps[pn] = set() | ||
942 | for dep in sorted(depgraph["tdepends"][task]): | ||
943 | (deppn, deptaskname) = dep.rsplit(".", 1) | ||
944 | pndeps[pn].add(deppn) | ||
945 | for pn in sorted(pndeps): | ||
946 | fn = depgraph["pn"][pn]["filename"] | ||
947 | version = depgraph["pn"][pn]["version"] | ||
948 | f.write('"%s" [label="%s\\n%s\\n%s"]\n' % (pn, pn, version, fn)) | ||
949 | for dep in sorted(pndeps[pn]): | ||
950 | if dep == pn: | ||
951 | continue | ||
952 | f.write('"%s" -> "%s"\n' % (pn, dep)) | ||
953 | f.write("}\n") | ||
954 | logger.info("Flattened recipe dependencies saved to 'recipe-depends.dot'") | ||
955 | |||
956 | def show_appends_with_no_recipes(self): | 939 | def show_appends_with_no_recipes(self): |
957 | # Determine which bbappends haven't been applied | 940 | # Determine which bbappends haven't been applied |
958 | 941 | ||