diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 91c3a42db6..a53aba9c1a 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -467,7 +467,7 @@ def exec_task(fn, task, d, profile = False): quieterr = True if profile: - profname = "profile-%s.log" % (os.path.basename(fn) + "-" + task) + profname = "profile-%s.log" % (d.getVar("PN", True) + "-" + task) try: import cProfile as profile except: