From 9318d84577d6217a1b9a984a0fee72a5e86553e0 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 6 Oct 2015 02:18:58 -0700 Subject: 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 --- meta/classes/insane.bbclass | 7 +++++-- 1 file 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 -- cgit 1.2.3-korg