]> code.ossystems Code Review - openembedded-core.git/commit
externalsrc: use shared CONFIGURESTAMPFILE if B=S
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 29 Jan 2016 15:04:31 +0000 (17:04 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 31 Jan 2016 13:29:37 +0000 (13:29 +0000)
commitf44f12af346888bdeb3ae01a275cb5dd4396b505
tree8ae39808df7273c318676d40b25f885fd498065f
parentbb82dc384bda48d746634ba1f4e315737993c794
externalsrc: use shared CONFIGURESTAMPFILE if B=S

External source tree is used as the builddir even for different
architectures in case ${B}=${S}. This may cause problems if MACHINE is
changed as do_configure is not being re-run (which would run make
clean). This patches changes externalsrc to use a common (per-recipe)
CONFIGURESTAMPFILE under 'work-shared' if ${B}=${S}. In addition,
do_configure will depend on changes of this stamp file. As a result,
do_configure is re-run and the build dir is cleaned correctly if a
rebuild for different MACHINE is done.

[YOCTO #8950]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass