mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
sanity.bbclass: Move sanity_info from conf to cache
Since this file is written during recipe parsing, having it in the
${BUILDDIR}/conf directory, which is covered by an inotify watcher,
will trigger a re-parse the next time bitbake is run and the resident
bitbake server is enabled. This causes the sanity_info file to be
updated again, which triggers a new parse the next time bitbake is run
ad infinitum. Moving it to ${BUILDDIR}/cache should avoid this.
(From OE-Core rev: a63d59f64a2d1f450a7639426cae8e0373a2d764)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f98103b548aa7dba6b1be6c8e02ef41858a8e85c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
deb8463938
commit
4fc93977e9
@@ -919,7 +919,7 @@ def check_sanity(sanity_data):
|
|||||||
last_tmpdir = ""
|
last_tmpdir = ""
|
||||||
last_sstate_dir = ""
|
last_sstate_dir = ""
|
||||||
last_nativelsbstr = ""
|
last_nativelsbstr = ""
|
||||||
sanityverfile = sanity_data.expand("${TOPDIR}/conf/sanity_info")
|
sanityverfile = sanity_data.expand("${TOPDIR}/cache/sanity_info")
|
||||||
if os.path.exists(sanityverfile):
|
if os.path.exists(sanityverfile):
|
||||||
with open(sanityverfile, 'r') as f:
|
with open(sanityverfile, 'r') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
|
|||||||
@@ -462,7 +462,7 @@ class BuildPerfTestCase(unittest.TestCase):
|
|||||||
def rm_tmp(self):
|
def rm_tmp(self):
|
||||||
"""Cleanup temporary/intermediate files and directories"""
|
"""Cleanup temporary/intermediate files and directories"""
|
||||||
log.debug("Removing temporary and cache files")
|
log.debug("Removing temporary and cache files")
|
||||||
for name in ['bitbake.lock', 'conf/sanity_info',
|
for name in ['bitbake.lock', 'cache/sanity_info',
|
||||||
self.bb_vars['TMPDIR']]:
|
self.bb_vars['TMPDIR']]:
|
||||||
oe.path.remove(name, recurse=True)
|
oe.path.remove(name, recurse=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user