mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
Revert "ccache.bbclass: use ccache from host distribution"
This reverts commit f5b29367af4d8e5daea5771264774aa49519f9a8. Will use ccache-native which is more reliable. (From OE-Core rev: 1b659623430e1a6e6dd266e65bab7ca8155a7138) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
496d849224
commit
220a5fcb99
@@ -33,10 +33,10 @@ class ImageOptionsTests(OESelftestTestCase):
|
||||
self.assertTrue(incremental_removed, msg = "Match failed in:\n%s" % log_data_removed)
|
||||
|
||||
def test_ccache_tool(self):
|
||||
bb_vars = get_bb_vars(['HOSTTOOLS_DIR'], 'm4-native')
|
||||
p = bb_vars['HOSTTOOLS_DIR'] + "/" + "ccache"
|
||||
if not os.path.isfile(p):
|
||||
self.skipTest("No ccache binary found in %s" % bb_vars['HOSTTOOLS_DIR'])
|
||||
bitbake("ccache-native")
|
||||
bb_vars = get_bb_vars(['SYSROOT_DESTDIR', 'bindir'], 'ccache-native')
|
||||
p = bb_vars['SYSROOT_DESTDIR'] + bb_vars['bindir'] + "/" + "ccache"
|
||||
self.assertTrue(os.path.isfile(p), msg = "No ccache found (%s)" % p)
|
||||
self.write_config('INHERIT += "ccache"')
|
||||
self.add_command_to_tearDown('bitbake -c clean m4-native')
|
||||
bitbake("m4-native -c clean")
|
||||
|
||||
Reference in New Issue
Block a user