mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
ccache.bbclass: Use ccache-native and disable ccache for native recipes
Since host's ccache is not reliable, so disable ccache for native recipes and use ccache-native for other types of recipes. We need disable ccache for native recipes is because ccache-native now depends on cmake-native which causes circular dependencies, and it's not easy to break the circular. (From OE-Core rev: 631bbd4896882ba2acbe5bc85bc90ab7abc794ef) 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
220a5fcb99
commit
f13a95e17e
@@ -49,7 +49,7 @@ python() {
|
||||
"""
|
||||
pn = d.getVar('PN')
|
||||
# quilt-native doesn't need ccache since no c files
|
||||
if not (pn in ('ccache-native', 'quilt-native') or
|
||||
if not (bb.data.inherits_class("native", d) or
|
||||
bb.utils.to_boolean(d.getVar('CCACHE_DISABLE'))):
|
||||
d.appendVar('DEPENDS', ' ccache-native')
|
||||
d.setVar('CCACHE', 'ccache ')
|
||||
|
||||
Reference in New Issue
Block a user