diff options
author | Ross Burton <ross.burton@intel.com> | 2016-08-05 16:17:09 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-10 10:46:29 +0100 |
commit | 63cb0eec1f1ea29bb557b2e82caea233747b61b4 (patch) | |
tree | 63bbb33cc65c1cb348bb623ff34bcf1a394540ba | |
parent | e1081f491c46bbf006ad2d1386970dcb9a50f51f (diff) | |
download | poky-63cb0eec1f1ea29bb557b2e82caea233747b61b4.tar.gz |
autotools: move aclocal-copy to WORKDIR
To save time move the temporary copy of the autoconf macros, aclocal-copy, from
${B} to ${WORKDIR}. This ensures that it can't conflict with anything in ${S}
and means the pruning code doesn't need to know about it.
(From OE-Core rev: d7249c5cce6fbc7875c46f2452ca8cd045773898)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/autotools.bbclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 1c884b494a..22359d3a0e 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -134,7 +134,7 @@ EXTRACONFFUNCS ??= "" | |||
134 | do_configure[prefuncs] += "autotools_preconfigure autotools_copy_aclocals ${EXTRACONFFUNCS}" | 134 | do_configure[prefuncs] += "autotools_preconfigure autotools_copy_aclocals ${EXTRACONFFUNCS}" |
135 | do_configure[postfuncs] += "autotools_postconfigure" | 135 | do_configure[postfuncs] += "autotools_postconfigure" |
136 | 136 | ||
137 | ACLOCALDIR = "${B}/aclocal-copy" | 137 | ACLOCALDIR = "${WORKDIR}/aclocal-copy" |
138 | 138 | ||
139 | python autotools_copy_aclocals () { | 139 | python autotools_copy_aclocals () { |
140 | s = d.getVar("AUTOTOOLS_SCRIPT_PATH", True) | 140 | s = d.getVar("AUTOTOOLS_SCRIPT_PATH", True) |
@@ -248,7 +248,7 @@ autotools_do_configure() { | |||
248 | if [ x"${acpaths}" = xdefault ]; then | 248 | if [ x"${acpaths}" = xdefault ]; then |
249 | acpaths= | 249 | acpaths= |
250 | for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \ | 250 | for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \ |
251 | grep -v 'acinclude.m4' | grep -v 'aclocal-copy' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do | 251 | grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do |
252 | acpaths="$acpaths -I $i" | 252 | acpaths="$acpaths -I $i" |
253 | done | 253 | done |
254 | else | 254 | else |
@@ -288,9 +288,7 @@ autotools_do_configure() { | |||
288 | fi | 288 | fi |
289 | fi | 289 | fi |
290 | for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do | 290 | for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do |
291 | for j in `find ${S} -ignore_readdir_race -name $i | grep -v aclocal-copy`; do | 291 | find ${S} -ignore_readdir_race -name $i -delete |
292 | rm $j | ||
293 | done | ||
294 | done | 292 | done |
295 | fi | 293 | fi |
296 | mkdir -p m4 | 294 | mkdir -p m4 |