diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-31 23:43:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-01 15:51:11 +0100 |
commit | 6e15fee9eea00f754ad4a29a0d8586a215ba61f4 (patch) | |
tree | e117db0681c687476c9f57289df0612ec5ce53f3 /bitbake | |
parent | bd023ef9c093b7e79bf44d8332744161eed56a18 (diff) | |
download | poky-6e15fee9eea00f754ad4a29a0d8586a215ba61f4.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
467 | quieterr = True | 467 | quieterr = True |
468 | 468 | ||
469 | if profile: | 469 | if profile: |
470 | profname = "profile-%s.log" % (os.path.basename(fn) + "-" + task) | 470 | profname = "profile-%s.log" % (d.getVar("PN", True) + "-" + task) |
471 | try: | 471 | try: |
472 | import cProfile as profile | 472 | import cProfile as profile |
473 | except: | 473 | except: |