]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
base.bbclass: Fix way to check ccache path
authorChangqing Li <changqing.li@windriver.com>
Fri, 23 Dec 2022 03:38:40 +0000 (11:38 +0800)
committerSteve Sakoman <steve@sakoman.com>
Mon, 9 Jan 2023 16:30:45 +0000 (06:30 -1000)
commitf2f70bf8d93b33b65875828c0402a98e943f660a
tree2891dbd648e785418de2795dc1da9ba7452952b6
parente9f2d3e18db0c7b3e6e4ea385f54fbb8a02ad324
base.bbclass: Fix way to check ccache path

The previous code had 2 issues:
1. make hosttools/ccache always link to host's ccache (/usr/bin/ccache)
even we have one buildtools
2. make hosttools/gcc etc, link to host's gcc event we have one
buildtools when keyword ccache in buildtools's path, eg:
/mnt/ccache/bin/buildtools

This patch is for fix above issues.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1b7c81414cf252a7203d95703810a770184d7e4d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/base.bbclass