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 09:33:44 +0000 |
commit | dd462c3b3f449805e104be402b23fbfabcaefe8f (patch) | |
tree | 2cb77c5d2ab62b73a8eba0e8ebc726883af5246e /meta/classes/scons.bbclass | |
parent | 49b376b84bcb321eac9787957be2c94ec59e0a95 (diff) | |
download | openembedded-core-contrib-dd462c3b3f449805e104be402b23fbfabcaefe8f.tar.gz |
scons.bbclass: Force rebuild if necessary
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 b9ae19d5823..286843f74ca 100644 --- a/meta/classes/scons.bbclass +++ b/meta/classes/scons.bbclass @@ -2,7 +2,16 @@ DEPENDS += "python-scons-native" EXTRA_OESCONS ?= "" -do_configure[noexec] = "1" +do_configure() { + if [ -n "${CONFIGURESTAMPFILE}" ]; then + if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then + ${STAGING_BINDIR_NATIVE}/scons --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} + fi + + mkdir -p `dirname ${CONFIGURESTAMPFILE}` + echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE} + fi +} scons_do_compile() { ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \ |