aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2019-01-09 12:26:31 +0800
committerRobert Yang <liezhi.yang@windriver.com>2019-01-09 19:31:20 -0800
commit60f11f24cce5d9e40bd14f708e5878b4de8364be (patch)
treeb019f6ca11d46c35227b78556f039206b2c9024f
parent625dc853b0c953a4e066d9088796886f6d0b5103 (diff)
downloadopenembedded-core-contrib-rbt/glibc-site.tar.gz
autotools.bbclass: Add glibc-site to depsrbt/glibc-site
This can reduce configure time, here is a test result: $ bitbake recipe -cconfigure && bitbake recipe -ccleansstate && time bitbake recipe -cconfigure - gettext: before: 2m38.382s after: 2m33.099s - coreutils: before: 1m19.967s after: 1m13.574s - bison: before: 0m56.203s after: 0m50.134s But there is nearly no difference when bitbake core-image-minimal or core-image-sato, I think it is because glibc-site requires about 30s to build, and these recipes depend on it, so there is no difference when do large builds. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/classes/autotools.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 8768a6ad68..9abafaf0d7 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -17,6 +17,11 @@ def autotools_dep_prepend(d):
and not d.getVar('INHIBIT_DEFAULT_DEPS'):
deps += 'libtool-cross '
+ if not (d.getVar('INHIBIT_DEFAULT_DEPS') or \
+ bb.data.inherits_class('native', d) or \
+ bb.data.inherits_class('cross', d)):
+ deps += 'glibc-site '
+
return deps + 'gnu-config-native '
DEPENDS_prepend = "${@autotools_dep_prepend(d)} "