summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2017-08-29 14:10:53 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-30 11:14:25 +0100
commite417dce911163f7a980e9e028058e600453e4cc8 (patch)
tree3a197a35657e313ffce3f0683ada8866ace94e3c
parent749f54530fa65a5de996c3e0a41e9528020d84d9 (diff)
downloadpoky-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>
-rw-r--r--meta/classes/gettext.bbclass2
-rw-r--r--meta/classes/insane.bbclass6
2 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/gettext.bbclass b/meta/classes/gettext.bbclass
index 689ef55ed1..da68e63242 100644
--- a/meta/classes/gettext.bbclass
+++ b/meta/classes/gettext.bbclass
@@ -13,7 +13,7 @@ def gettext_oeconf(d):
13 return '--disable-nls' 13 return '--disable-nls'
14 return "--enable-nls" 14 return "--enable-nls"
15 15
16DEPENDS_GETTEXT ??= "virtual/gettext gettext-native" 16DEPENDS_GETTEXT ??= "gettext-native"
17 17
18BASEDEPENDS_append = " ${@gettext_dependencies(d)}" 18BASEDEPENDS_append = " ${@gettext_dependencies(d)}"
19EXTRA_OECONF_append = " ${@gettext_oeconf(d)}" 19EXTRA_OECONF_append = " ${@gettext_oeconf(d)}"
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: