summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-alternatives.bbclass
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-02-21 23:17:28 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:19 +0000
commit09a253d09f1e89874e2e8c2aec9c3d01a0e198db (patch)
tree7ebdc7c4842143a6d695ee3e06850cc215c2c95f /meta/classes/update-alternatives.bbclass
parentf6eec55982ede2564ef61eb76111bbc6b46777c3 (diff)
downloadpoky-09a253d09f1e89874e2e8c2aec9c3d01a0e198db.tar.gz
update-alternatives.bbclass: Disable for mingw32 targets
When building for mingw32 targets (e.g. nativesdk cross compiling for windows), disable the dependency on update-alternatives as the Windows platform does not support symlinks or package management. This avoids the complex (partly non-buildable for mingw32) dependency chain virtual/update-alternatives -> opkg-utils -> python -> ... (From OE-Core rev: 0131abe2d94d6836a54bc1616566c3bf3f2d6eb0) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/update-alternatives.bbclass')
-rw-r--r--meta/classes/update-alternatives.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass
index ca7fe43417..4bba76c3ba 100644
--- a/meta/classes/update-alternatives.bbclass
+++ b/meta/classes/update-alternatives.bbclass
@@ -96,6 +96,10 @@ python __anonymous() {
96 bb.data.inherits_class('cross-canadian', d): 96 bb.data.inherits_class('cross-canadian', d):
97 return 97 return
98 98
99 # Disable when targeting mingw32 (no target support)
100 if d.getVar("TARGET_OS") == "mingw32":
101 return
102
99 # compute special vardeps 103 # compute special vardeps
100 gen_updatealternativesvardeps(d) 104 gen_updatealternativesvardeps(d)
101 105