From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Robert Yang <liezhi.yang@windriver.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 3/5] ccache.bbclass: Only let native recipes depend on ccache-native
Date: Thu, 24 Jan 2019 12:46:33 +0000 [thread overview]
Message-ID: <7cb9cc96b5112286ae99e953eae706259af9ead0.camel@linuxfoundation.org> (raw)
In-Reply-To: <86fa8d401929e7641976ac57b34ee4a872ee74c6.1548312985.git.liezhi.yang@windriver.com>
On Thu, 2019-01-24 at 14:57 +0800, Robert Yang wrote:
> Make native recipes depend on ccache-native should be enough since native
> recipes are on target/nativesdk recipes' dependency chain, this can reduce the
> size of DEPENDS.
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> meta/classes/ccache.bbclass | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass
> index b545735..6caaca7 100644
> --- a/meta/classes/ccache.bbclass
> +++ b/meta/classes/ccache.bbclass
> @@ -47,8 +47,11 @@ python() {
> # quilt-native doesn't need ccache since no c files
> if not (pn in ('ccache-native', 'quilt-native') or
> bb.utils.to_boolean(d.getVar('CCACHE_DISABLE'))):
> - d.appendVar('DEPENDS', ' ccache-native')
> d.setVar('CCACHE', 'ccache ')
> + # Make native recipes depend on ccache-native should be enough since
> + # native recipes are on target recipes' dependency chain.
> + if bb.data.inherits_class('native', d):
> + d.appendVar('DEPENDS', ' ccache-native')
> }
>
> addtask cleanccache after do_clean
This is not correct. Think about the case where the native recipes were
installed from sstate. The target recipe dependencies would then be
incorrect.
Cheers,
Richard
next prev parent reply other threads:[~2019-01-24 12:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-24 6:57 [PATCH 0/5] Fixes for ccache Robert Yang
2019-01-24 6:57 ` [PATCH 1/5] cmake-native: Add --enable-ccache to configure options Robert Yang
2019-01-24 6:57 ` [PATCH 2/5] bitbake.conf: Add CCACHE_TOP_DIR to BB_HASHBASE_WHITELIST Robert Yang
2019-01-24 6:57 ` [PATCH 3/5] ccache.bbclass: Only let native recipes depend on ccache-native Robert Yang
2019-01-24 12:46 ` Richard Purdie [this message]
2019-01-25 3:32 ` Robert Yang
2019-01-24 6:57 ` [PATCH 4/5] ccache: 3.5 -> 3.6 Robert Yang
2019-01-24 6:57 ` [PATCH 5/5] ccache: Fix Segmentation fault error when gcc -o /dev/null Robert Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7cb9cc96b5112286ae99e953eae706259af9ead0.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=liezhi.yang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox