diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-09-16 03:25:01 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-18 09:05:31 +0100 |
commit | 96795000eab6520d4c919bcdb1a622a346d1cb69 (patch) | |
tree | 43de7e53031b6b9529eaeea26318a61ceee53b95 /meta/classes | |
parent | c30ee2a290d00ea30d1060b8e1533bf3609c3059 (diff) | |
download | poky-96795000eab6520d4c919bcdb1a622a346d1cb69.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: 72682d72b52355c3fed947167ca3c6064340ead1)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/autotools.bbclass | 2 |
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() { | |||
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 |