]> code.ossystems Code Review - openembedded-core.git/commitdiff
update-alternatives.bbclass: Disable for mingw32 targets
authorNathan Rossi <nathan@nathanrossi.com>
Tue, 21 Feb 2017 13:17:28 +0000 (23:17 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 4 Mar 2017 10:42:34 +0000 (10:42 +0000)
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 -> ...

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/update-alternatives.bbclass

index ca7fe43417492ba3566e701ebd5e2b460b3a9a2e..4bba76c3ba9fd0207216e7cad88c198e8be2501b 100644 (file)
@@ -96,6 +96,10 @@ python __anonymous() {
        bb.data.inherits_class('cross-canadian', d):
         return
 
+    # Disable when targeting mingw32 (no target support)
+    if d.getVar("TARGET_OS") == "mingw32":
+        return
+
     # compute special vardeps
     gen_updatealternativesvardeps(d)