]> code.ossystems Code Review - openembedded-core.git/commit
externalsrc: use shared stamp directory if B=S
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 18 Mar 2016 07:41:51 +0000 (09:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Mar 2016 22:57:57 +0000 (22:57 +0000)
commitf5031fb37ceef83c85f0dfec773da75c05b2a631
treeb472b11e16e71c920dcb8c5a4f804772fa26d0a2
parent6b43539e6624113acbcd06b11cfe8cfe6586244f
externalsrc: use shared stamp directory if B=S

We have a common build directory for all target architectures if
externalsrc is used and ${B}=${S}. In this case we also need to have a
common stamp directory. The reason is that e.g. changing MACHINE will
basically "invalidate" the artefacts in ${B} (wrt. to the new MACHINE)
but old stamp files with matching hashes from an earlier build might be
available in the machine-specific stamps directory and tasks would not
be correctly re-run.

Previous attempt in f44f12af346888bdeb3ae01a275cb5dd4396b505 to handle
this correctly was faulty as it threw some spurious warnings and caused
do_configure to be re-run in every build if that would not be necessary.

[YOCTO #8950]
[YOCTO #9237]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/externalsrc.bbclass