diff options
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index ff8c63394f..e1b25ff134 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -216,11 +216,24 @@ python base_eventhandler() { | |||
216 | 216 | ||
217 | } | 217 | } |
218 | 218 | ||
219 | CONFIGURESTAMPFILE = "${WORKDIR}/configure.sstate" | ||
220 | |||
219 | addtask configure after do_patch | 221 | addtask configure after do_patch |
220 | do_configure[dirs] = "${S} ${B}" | 222 | do_configure[dirs] = "${S} ${B}" |
221 | do_configure[deptask] = "do_populate_sysroot" | 223 | do_configure[deptask] = "do_populate_sysroot" |
222 | base_do_configure() { | 224 | base_do_configure() { |
223 | : | 225 | if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then |
226 | if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" ]; then | ||
227 | cd ${B} | ||
228 | if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then | ||
229 | ${MAKE} clean | ||
230 | fi | ||
231 | find ${B} -name \*.la -delete | ||
232 | fi | ||
233 | fi | ||
234 | if [ -n "${CONFIGURESTAMPFILE}" ]; then | ||
235 | echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE} | ||
236 | fi | ||
224 | } | 237 | } |
225 | 238 | ||
226 | addtask compile after do_configure | 239 | addtask compile after do_configure |