diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-12-28 21:04:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-31 11:53:26 +0000 |
commit | 95c76b9bd458a10277c9df37d15d86203ec8f10f (patch) | |
tree | 6f0937d7ea784cbc0b0f820920c7e373af38091f /meta/classes | |
parent | 2ccb91bc740878f030002fb1a373a708bd125645 (diff) | |
download | poky-95c76b9bd458a10277c9df37d15d86203ec8f10f.tar.gz |
ccache.bbclass: use ccache from host distribution
ccache 4.x has hard dependencies on cmake-native (used as
build system) and zstd, which means inserting ccache-native
as DEPENDS into everything creates circular dependencies which
are impossible to break.
ccache 3.x did not have this problem as it used plain makefiles
and an in-tree copy of zlib.
(From OE-Core rev: f5b29367af4d8e5daea5771264774aa49519f9a8)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/ccache.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass index b5457359ca..11a3f1cb52 100644 --- a/meta/classes/ccache.bbclass +++ b/meta/classes/ccache.bbclass | |||
@@ -1,5 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Usage: | 2 | # Usage: |
3 | # - Install ccache package on the host distribution and set up a build directory | ||
4 | # | ||
3 | # - Enable ccache | 5 | # - Enable ccache |
4 | # Add the following line to a conffile such as conf/local.conf: | 6 | # Add the following line to a conffile such as conf/local.conf: |
5 | # INHERIT += "ccache" | 7 | # INHERIT += "ccache" |
@@ -47,7 +49,6 @@ python() { | |||
47 | # quilt-native doesn't need ccache since no c files | 49 | # quilt-native doesn't need ccache since no c files |
48 | if not (pn in ('ccache-native', 'quilt-native') or | 50 | if not (pn in ('ccache-native', 'quilt-native') or |
49 | bb.utils.to_boolean(d.getVar('CCACHE_DISABLE'))): | 51 | bb.utils.to_boolean(d.getVar('CCACHE_DISABLE'))): |
50 | d.appendVar('DEPENDS', ' ccache-native') | ||
51 | d.setVar('CCACHE', 'ccache ') | 52 | d.setVar('CCACHE', 'ccache ') |
52 | } | 53 | } |
53 | 54 | ||