]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: mkdir ${B} -> mkdir -p ${B}
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 18 Sep 2015 12:15:20 +0000 (14:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 19 Sep 2015 10:10:51 +0000 (11:10 +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 b5f45160ed21347ecf4d15660fa29dbc2fc441a3..dbe5e91a04b72c1aaf9c1f7c275944766c968e76 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