summaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-10 18:10:33 -0500
committerChris Larson <chris_larson@mentor.com>2010-12-10 18:10:51 -0500
commit8b0753c090b0065a982198708c840f7c78dc0d23 (patch)
treef0a16d3e3daabd2ac6e25bb0886823eef75e64f9 /lib/bb/build.py
parentb16c0c1dc3b7e03b02555e9803767a0d695e67f1 (diff)
downloadbitbake-8b0753c090b0065a982198708c840f7c78dc0d23.tar.gz
build: don't create ${B} when the 'dirs' flag is unset
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index e95e358af..2a0c2b6db 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -139,7 +139,8 @@ def exec_func(func, d, dirs = None):
adir = dirs[-1]
else:
adir = data.getVar('B', d, 1)
- bb.utils.mkdirhier(adir)
+ if not os.path.exists(adir):
+ adir = None
ispython = flags.get('python')
fakeroot = flags.get('fakeroot')