[oe-commits] [openembedded-core] 46/63: update-alternatives.bbclass: Disable for mingw32 targets

git at git.openembedded.org git at git.openembedded.org
Sat Mar 4 10:46:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 0131abe2d94d6836a54bc1616566c3bf3f2d6eb0
Author: Nathan Rossi <nathan at nathanrossi.com>
AuthorDate: Tue Feb 21 23:17:28 2017 +1000

    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 -> ...
    
    Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/update-alternatives.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass
index ca7fe43..4bba76c 100644
--- a/meta/classes/update-alternatives.bbclass
+++ b/meta/classes/update-alternatives.bbclass
@@ -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)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list