From 631bbd4896882ba2acbe5bc85bc90ab7abc794ef Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 19 Jan 2021 01:23:44 -0800 Subject: 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. Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- meta/classes/ccache.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/ccache.bbclass') diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass index fc4745609c..4532894c57 100644 --- a/meta/classes/ccache.bbclass +++ b/meta/classes/ccache.bbclass @@ -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 ') -- cgit 1.2.3-korg