diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2015-12-16 17:54:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-22 16:08:42 +0000 |
commit | 2262fdb256954b22dadb2f7c6922e6046c269742 (patch) | |
tree | d2329ba63a8bc0d859628d2d9e8c006f106306f9 | |
parent | 3c4de5430aff2d7443f064d698014615e867c58c (diff) | |
download | openembedded-core-2262fdb256954b22dadb2f7c6922e6046c269742.tar.gz openembedded-core-2262fdb256954b22dadb2f7c6922e6046c269742.tar.bz2 openembedded-core-2262fdb256954b22dadb2f7c6922e6046c269742.zip |
staging.bbclass: make already-stripped can be skipped
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>
-rw-r--r-- | meta/classes/staging.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index 967eddd605..243bcdf895 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass @@ -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: |