summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2019-01-20 18:48:57 -0800
committerRobert Yang <liezhi.yang@windriver.com>2019-01-24 14:53:46 +0800
commit86fa8d401929e7641976ac57b34ee4a872ee74c6 (patch)
tree7c23fa1989b49f22fd302ef6a8d371e225dcb523
parent17d56266d51ec2cd40d1f5709fc685a92950933a (diff)
downloadopenembedded-core-contrib-86fa8d401929e7641976ac57b34ee4a872ee74c6.tar.gz
openembedded-core-contrib-86fa8d401929e7641976ac57b34ee4a872ee74c6.tar.bz2
openembedded-core-contrib-86fa8d401929e7641976ac57b34ee4a872ee74c6.zip
ccache.bbclass: Only let native recipes depend on ccache-native
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>
-rw-r--r--meta/classes/ccache.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass
index b5457359ca..6caaca79e0 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