]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: mkdir ${B} -> mkdir -p ${B}
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 16 Sep 2015 10:25:01 +0000 (03:25 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Sep 2015 21:17:19 +0000 (22:17 +0100)
${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>
meta/classes/autotools.bbclass

index 9ccd7d2e2de54dfecb97a532a39c633085f72122..819045a3b44a18ed1da6f2bfd1beef4a9bbd2322 100644 (file)
@@ -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