summaryrefslogtreecommitdiffstats
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:11:20 +0100
commit3a2725e5d9e90995e137dcda86834090c01e9d0f (patch)
treecc28bd7c863a7b71f3ef771b11eae0173cc1aa72
parentadcc476412142deb8d499de06d8447837c3691ae (diff)
downloadpoky-3a2725e5d9e90995e137dcda86834090c01e9d0f.tar.gz
poky-3a2725e5d9e90995e137dcda86834090c01e9d0f.tar.bz2
poky-3a2725e5d9e90995e137dcda86834090c01e9d0f.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 (From OE-Core rev: 3390dde6addaafad84c635eb37d2eae1ac22fcb7) 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 b5f45160ed..dbe5e91a04 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