aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-09-18 14:15:20 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-19 11:10:51 +0100
commit3390dde6addaafad84c635eb37d2eae1ac22fcb7 (patch)
tree358c57bafc8f400a211b77869b134f847b52d12c
parent197d9fb922cc234294e8ca090bddfcd023fc82ce (diff)
downloadopenembedded-core-3390dde6addaafad84c635eb37d2eae1ac22fcb7.zip
openembedded-core-3390dde6addaafad84c635eb37d2eae1ac22fcb7.tar.gz
openembedded-core-3390dde6addaafad84c635eb37d2eae1ac22fcb7.tar.bz2
autotools.bbclass: mkdir ${B} -> mkdir -p ${B}
${B} is the default cwd of tasks, so there might be race issues such as: | mkdir: cannot create directory `${B}': File exists [snip] NOTE: recipe perf-1.0-r9: task do_configure: Failed Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/autotools.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index b5f4516..dbe5e91 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -105,7 +105,7 @@ autotools_preconfigure() {
if [ "${S}" != "${B}" ]; then
echo "Previously configured separate build directory detected, cleaning ${B}"
rm -rf ${B}
- mkdir ${B}
+ mkdir -p ${B}
else
# At least remove the .la files since automake won't automatically
# regenerate them even if CFLAGS/LDFLAGS are different