diff options
| author | Robert Yang <liezhi.yang@windriver.com> | 2021-01-19 01:23:44 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-20 00:45:05 +0000 |
| commit | f13a95e17e38e519d9afb3834fcb9c9472132d21 (patch) | |
| tree | b8b8a4c8076f2a2bef5627ac4662bc213cf97b13 /meta/classes/ccache.bbclass | |
| parent | 220a5fcb991d40ebfc8a7fe876ce448b0ac92a47 (diff) | |
| download | poky-f13a95e17e38e519d9afb3834fcb9c9472132d21.tar.gz | |
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>
Diffstat (limited to 'meta/classes/ccache.bbclass')
| -rw-r--r-- | meta/classes/ccache.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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() { | |||
| 49 | """ | 49 | """ |
| 50 | pn = d.getVar('PN') | 50 | pn = d.getVar('PN') |
| 51 | # quilt-native doesn't need ccache since no c files | 51 | # quilt-native doesn't need ccache since no c files |
| 52 | if not (pn in ('ccache-native', 'quilt-native') or | 52 | if not (bb.data.inherits_class("native", d) or |
| 53 | bb.utils.to_boolean(d.getVar('CCACHE_DISABLE'))): | 53 | bb.utils.to_boolean(d.getVar('CCACHE_DISABLE'))): |
| 54 | d.appendVar('DEPENDS', ' ccache-native') | 54 | d.appendVar('DEPENDS', ' ccache-native') |
| 55 | d.setVar('CCACHE', 'ccache ') | 55 | d.setVar('CCACHE', 'ccache ') |
