From: Nathan Rossi Date: Tue, 21 Feb 2017 13:17:28 +0000 (+1000) Subject: update-alternatives.bbclass: Disable for mingw32 targets X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~22217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0131abe2d94d6836a54bc1616566c3bf3f2d6eb0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton --- diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass index ca7fe434174..4bba76c3ba9 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)