summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-09-18 14:13:47 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-19 11:10:31 +0100
commit4c02a30f084408d0a6a5149937ef74520f8346dc (patch)
tree372395a149f23fe6a80407a8c2551f09df0704d7
parenteb3d1dac724144637a86e8124b7b6b91bbeab822 (diff)
downloadopenembedded-core-4c02a30f084408d0a6a5149937ef74520f8346dc.tar.gz
openembedded-core-4c02a30f084408d0a6a5149937ef74520f8346dc.tar.bz2
openembedded-core-4c02a30f084408d0a6a5149937ef74520f8346dc.zip
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 f213e893df..24a0114565 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