insane.bbclass: short circuit architecture check for cross packages (e.g. gcc-cross...
authorKoen Kooi <koen@openembedded.org>
Fri, 6 Apr 2007 13:30:27 +0000 (13:30 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 6 Apr 2007 13:30:27 +0000 (13:30 +0000)
classes/insane.bbclass

index e5a1cd0..21348a8 100644 (file)
@@ -255,6 +255,10 @@ def package_qa_check_arch(path,name,d):
     import bb, os
     target_os   = bb.data.getVar('TARGET_OS',   d, True)
     target_arch = bb.data.getVar('TARGET_ARCH', d, True)
+  
+    # FIXME: Cross package confuse this check, so just skip them
+    if bb.data.inherits_class('cross', d):
+        return True
 
     # avoid following links to /usr/bin (e.g. on udev builds)
     # we will check the files pointed to anyway...