From 60f11f24cce5d9e40bd14f708e5878b4de8364be Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Wed, 9 Jan 2019 12:26:31 +0800 Subject: autotools.bbclass: Add glibc-site to deps 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 --- meta/classes/autotools.bbclass | 5 +++++ 1 file changed, 5 insertions(+) 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)} " -- cgit 1.2.3-korg