diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-09-18 14:13:47 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-19 11:11:12 +0100 |
commit | 57eb677f0efe9a4060c764e8e9dfe2440d4e5eb2 (patch) | |
tree | 7c0dc65d224a11a2301ce2fc5bb4e954253da264 | |
parent | 5fecc456e5c35157d4c11672d1b4ecdf15bf1afc (diff) | |
download | poky-57eb677f0efe9a4060c764e8e9dfe2440d4e5eb2.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: 4c02a30f084408d0a6a5149937ef74520f8346dc)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 f213e893df..24a0114565 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 |