summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-09-16 02:07:58 -0700
committerRobert Yang <liezhi.yang@windriver.com>2015-09-16 03:23:08 -0700
commitae39285aa52d8788dd9673aa1c1e759d3d3ba52f (patch)
tree3cda61d459332efe6b9001b56adc8cb3a8335f90
parent5454639ee071da6816d723e22d89873be8927ea9 (diff)
downloadopenembedded-core-contrib-rbt/mkdir.tar.gz
openembedded-core-contrib-rbt/mkdir.tar.bz2
openembedded-core-contrib-rbt/mkdir.zip
autotools.bbclass: mkdir ${B} -> mkdir -p ${B}rbt/mkdir
${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>
-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 9ccd7d2e2d..819045a3b4 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