From: Richard Purdie Date: Sat, 31 Aug 2013 22:43:37 +0000 (+0100) Subject: bitbake: build: Fix profile file names X-Git-Tag: rev_ivi_2015_02_04~11181 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9d3c5210c58ac8cad3b101a26ae512fe2555c2b;p=scm%2Fbb%2Ftizen-distro.git bitbake: build: Fix profile file names Using the basename of the .bb file is not unique, for example xxx-native and xxx can overwrite each other. If this happens whilst running, you can get odd backtraces as one file is parsed as another tries to write out new data. Avoid issues by using PN for the output filename instead. (Bitbake rev: c9534f8e59d44b885334607ed90a3be2e492ec69) Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 91c3a42..a53aba9 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: