summaryrefslogtreecommitdiffstats
path: root/meta/classes/scons.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/scons.bbclass')
-rw-r--r--meta/classes/scons.bbclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/classes/scons.bbclass b/meta/classes/scons.bbclass
index b9ae19d582..286843f74c 100644
--- a/meta/classes/scons.bbclass
+++ b/meta/classes/scons.bbclass
@@ -2,7 +2,16 @@ DEPENDS += "python-scons-native"
2 2
3EXTRA_OESCONS ?= "" 3EXTRA_OESCONS ?= ""
4 4
5do_configure[noexec] = "1" 5do_configure() {
6 if [ -n "${CONFIGURESTAMPFILE}" ]; then
7 if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
8 ${STAGING_BINDIR_NATIVE}/scons --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
9 fi
10
11 mkdir -p `dirname ${CONFIGURESTAMPFILE}`
12 echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE}
13 fi
14}
6 15
7scons_do_compile() { 16scons_do_compile() {
8 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \ 17 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \