summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/base.bbclass15
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
219CONFIGURESTAMPFILE = "${WORKDIR}/configure.sstate"
220
219addtask configure after do_patch 221addtask configure after do_patch
220do_configure[dirs] = "${S} ${B}" 222do_configure[dirs] = "${S} ${B}"
221do_configure[deptask] = "do_populate_sysroot" 223do_configure[deptask] = "do_populate_sysroot"
222base_do_configure() { 224base_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
226addtask compile after do_configure 239addtask compile after do_configure