summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-09-18 12:15:20 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-19 10:11:20 (GMT)
commit3a2725e5d9e90995e137dcda86834090c01e9d0f (patch)
treecc28bd7c863a7b71f3ef771b11eae0173cc1aa72
parentadcc476412142deb8d499de06d8447837c3691ae (diff)
downloadpoky-3a2725e5d9e90995e137dcda86834090c01e9d0f.tar.gz
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 b5f4516..dbe5e91 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -105,7 +105,7 @@ autotools_preconfigure() {
105 if [ "${S}" != "${B}" ]; then 105 if [ "${S}" != "${B}" ]; then
106 echo "Previously configured separate build directory detected, cleaning ${B}" 106 echo "Previously configured separate build directory detected, cleaning ${B}"
107 rm -rf ${B} 107 rm -rf ${B}
108 mkdir ${B} 108 mkdir -p ${B}
109 else 109 else
110 # At least remove the .la files since automake won't automatically 110 # At least remove the .la files since automake won't automatically
111 # regenerate them even if CFLAGS/LDFLAGS are different 111 # regenerate them even if CFLAGS/LDFLAGS are different