summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-10-06 02:18:58 -0700
committerRobert Yang <liezhi.yang@windriver.com>2015-10-08 05:58:40 -0700
commit9318d84577d6217a1b9a984a0fee72a5e86553e0 (patch)
treecc341da19e740c2ea8aa9f1c06326f07df1bb049
parent18a2e42949e3b3f6d18f1a72f2f870115731046e (diff)
downloadopenembedded-core-contrib-9318d84577d6217a1b9a984a0fee72a5e86553e0.tar.gz
openembedded-core-contrib-9318d84577d6217a1b9a984a0fee72a5e86553e0.tar.bz2
openembedded-core-contrib-9318d84577d6217a1b9a984a0fee72a5e86553e0.zip
insane.bbclass: skip buildpath qa check when set INHIBIT_PACKAGE_STRIP
There are build paths in the file when set INHIBIT_PACKAGE_STRIP. [YOCTO #8458] Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/classes/insane.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 664dfec50a..d6f73881b3 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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