diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-24 15:15:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-30 13:11:51 +0000 |
commit | 444ae98131f7f9e962d102f408eb867ab53a452a (patch) | |
tree | 216c7e45c723578e010a1e65ad562a1267dd668c /meta/classes/autotools.bbclass | |
parent | fcf56083b94c07946897a997a9d7c3e143e0a367 (diff) | |
download | poky-444ae98131f7f9e962d102f408eb867ab53a452a.tar.gz |
autotools: Use make clean for builds not supporting B != S
If the build doesn't support B != S, we can try running "make clean" instead
to try and clean up previous objects if the hash for the task has changed.
This tries to ensure that when variables like ${baselib} change, the changes are
correctly accounted for.
(From OE-Core rev: c2f761e2010857e2a2aad1dccf06ec39d15c1c86)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r-- | meta/classes/autotools.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 6b99bddd5d..bed8a835d4 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -109,7 +109,11 @@ autotools_preconfigure() { | |||
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 |
112 | cd ${S}; find ${S} -name \*.la -delete | 112 | cd ${S} |
113 | if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then | ||
114 | ${MAKE} clean | ||
115 | fi | ||
116 | find ${S} -name \*.la -delete | ||
113 | fi | 117 | fi |
114 | fi | 118 | fi |
115 | fi | 119 | fi |