summaryrefslogtreecommitdiffstats
path: root/meta/classes/scons.bbclass
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2018-11-13 11:17:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-14 11:14:40 +0000
commit11af905ac7d0de19842ac44085d51b334aec497a (patch)
tree8853b4b42cf8c11874dce6dd5b9300e28277e98b /meta/classes/scons.bbclass
parent4fd67973195f144ebbc359eacd76456b309305eb (diff)
downloadpoky-11af905ac7d0de19842ac44085d51b334aec497a.tar.gz
scons.bbclass: Force rebuild if necessary
(From OE-Core rev: dd462c3b3f449805e104be402b23fbfabcaefe8f) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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} || \