summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2015-12-16 17:54:01 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-22 16:08:50 +0000
commit606c9e7f78ab3ba128d85d1e5ffb6b0c110bc46f (patch)
tree9a340a5d54c2a713a61f42822d7bc5a1127ced48
parent647e0e44cee05866bfdbba0625b772a5dfffcd6d (diff)
downloadpoky-606c9e7f78ab3ba128d85d1e5ffb6b0c110bc46f.tar.gz
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. (From OE-Core rev: 2262fdb256954b22dadb2f7c6922e6046c269742) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/staging.bbclass5
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 () {
127 elf_file = isELF(file) 127 elf_file = isELF(file)
128 if elf_file & 1: 128 if elf_file & 1:
129 if elf_file & 2: 129 if elf_file & 2:
130 bb.warn("File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn)) 130 if 'already-stripped' in (d.getVar('INSANE_SKIP_' + pn, True) or "").split():
131 bb.note("Skipping file %s from %s for already-stripped QA test" % (file[len(dvar):], pn))
132 else:
133 bb.warn("File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn))
131 continue 134 continue
132 135
133 if s.st_ino in inodes: 136 if s.st_ino in inodes: