]> code.ossystems Code Review - openembedded-core.git/commitdiff
staging.bbclass: make already-stripped can be skipped
authorJackie Huang <jackie.huang@windriver.com>
Wed, 16 Dec 2015 09:54:01 +0000 (17:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Dec 2015 16:08:42 +0000 (16:08 +0000)
Add a check like what we does in package.bbclass
so that the already-stripped QA test can be skipped.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/staging.bbclass

index 967eddd6054ee6088521351ea4b8944ad959e395..243bcdf895d88a4a6d5083e2b861f0c5488c85be 100644 (file)
@@ -127,7 +127,10 @@ python sysroot_strip () {
                     elf_file = isELF(file)
                     if elf_file & 1:
                         if elf_file & 2:
-                            bb.warn("File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn))
+                            if 'already-stripped' in (d.getVar('INSANE_SKIP_' + pn, True) or "").split():
+                                bb.note("Skipping file %s from %s for already-stripped QA test" % (file[len(dvar):], pn))
+                            else:
+                                bb.warn("File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn))
                             continue
 
                         if s.st_ino in inodes: