diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-08-29 14:10:53 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-30 11:14:25 +0100 |
commit | e417dce911163f7a980e9e028058e600453e4cc8 (patch) | |
tree | 3a197a35657e313ffce3f0683ada8866ace94e3c /meta/classes/insane.bbclass | |
parent | 749f54530fa65a5de996c3e0a41e9528020d84d9 (diff) | |
download | poky-e417dce911163f7a980e9e028058e600453e4cc8.tar.gz |
gettext.bbclass: do not add virtual/gettext to DEPENDS
gettext has a notoriously slow configuration step, and so in my testing
this greatly speeds up building core-image-minimal: from 21m36s to 19m2s
(empty sstate and tmp, but pre-populated downloads).
I have also built world, and core-image-sato to make sure it doesn't break
or modify the build, and there is no difference whatsoever in packages
and images content. Target gettext seems not to be used for anything.
Also fix up insane.bbclass to remove the corresponding QA check.
(From OE-Core rev: 1a7b843d575b290917d1e379c2ba106460988230)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index fe0d744eb3..3906ba797e 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -1178,12 +1178,10 @@ Rerun configure task after fixing this.""") | |||
1178 | cnf = d.getVar('EXTRA_OECONF') or "" | 1178 | cnf = d.getVar('EXTRA_OECONF') or "" |
1179 | if "gettext" not in d.getVar('P') and "gcc-runtime" not in d.getVar('P') and "--disable-nls" not in cnf: | 1179 | if "gettext" not in d.getVar('P') and "gcc-runtime" not in d.getVar('P') and "--disable-nls" not in cnf: |
1180 | ml = d.getVar("MLPREFIX") or "" | 1180 | ml = d.getVar("MLPREFIX") or "" |
1181 | if bb.data.inherits_class('native', d) or bb.data.inherits_class('cross', d) or bb.data.inherits_class('crosssdk', d) or bb.data.inherits_class('nativesdk', d): | 1181 | if bb.data.inherits_class('cross-canadian', d): |
1182 | gt = "gettext-native" | ||
1183 | elif bb.data.inherits_class('cross-canadian', d): | ||
1184 | gt = "nativesdk-gettext" | 1182 | gt = "nativesdk-gettext" |
1185 | else: | 1183 | else: |
1186 | gt = "virtual/" + ml + "gettext" | 1184 | gt = "gettext-native" |
1187 | deps = bb.utils.explode_deps(d.getVar('DEPENDS') or "") | 1185 | deps = bb.utils.explode_deps(d.getVar('DEPENDS') or "") |
1188 | if gt not in deps: | 1186 | if gt not in deps: |
1189 | for config in configs: | 1187 | for config in configs: |