insane.bbclass: Silence the annoying GNU_HASH QA checks when --hash-style isn't set.
authorChris Larson <clarson@mvista.com>
Sat, 21 Mar 2009 01:21:38 +0000 (18:21 -0700)
committerChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 03:18:29 +0000 (20:18 -0700)
Signed-off-by: Chris Larson <clarson@mvista.com>
classes/insane.bbclass

index 5b31a01..48964af 100644 (file)
@@ -343,6 +343,8 @@ def package_qa_hash_style(path, name, d, elf):
     gnu_hash = "--hash-style=gnu" in bb.data.getVar('LDFLAGS', d, True)
     if not gnu_hash:
         gnu_hash = "--hash-style=both" in bb.data.getVar('LDFLAGS', d, True)
+    if not gnu_hash:
+        return True
 
     objdump = bb.data.getVar('OBJDUMP', d, True)
     env_path = bb.data.getVar('PATH', d, True)