diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2018-11-13 11:17:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:40 +0000 |
commit | 11af905ac7d0de19842ac44085d51b334aec497a (patch) | |
tree | 8853b4b42cf8c11874dce6dd5b9300e28277e98b /meta/classes/scons.bbclass | |
parent | 4fd67973195f144ebbc359eacd76456b309305eb (diff) | |
download | poky-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.bbclass | 11 |
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 | ||
3 | EXTRA_OESCONS ?= "" | 3 | EXTRA_OESCONS ?= "" |
4 | 4 | ||
5 | do_configure[noexec] = "1" | 5 | do_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 | ||
7 | scons_do_compile() { | 16 | scons_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} || \ |