]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane.bbclass: skip buildpath qa check when set INHIBIT_PACKAGE_STRIP
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 6 Oct 2015 09:18:58 +0000 (02:18 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Thu, 8 Oct 2015 12:58:40 +0000 (05:58 -0700)
There are build paths in the file when set INHIBIT_PACKAGE_STRIP.

[YOCTO #8458]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/insane.bbclass

index 664dfec50acd801e99f3f364869bb6c9067751ca..d6f73881b37a30f865b8922bf645d43dda9302ac 100644 (file)
@@ -572,8 +572,11 @@ def package_qa_check_buildpaths(path, name, d, elf, messages):
     """
     Check for build paths inside target files and error if not found in the whitelist
     """
-    # Ignore .debug files, not interesting
-    if path.find(".debug") != -1:
+    # Ignore:
+    # - .debug files
+    # - which sets INHIBIT_PACKAGE_STRIP
+    if path.find(".debug") != -1 or \
+        d.getVar('INHIBIT_PACKAGE_STRIP', True) == "1":
         return
 
     # Ignore .pyc files, not interesting