diff options
author | Khem Raj <raj.khem@gmail.com> | 2013-09-06 14:15:18 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-06 23:56:27 +0100 |
commit | 6bf67081380367b05080ab5518baacdddafd7c34 (patch) | |
tree | 2976cd001a20720e0541a6d6e88d914771dec12f /meta/classes | |
parent | 5ddec10f16db8948ea5e218ab7ec377b887dcce1 (diff) | |
download | poky-6bf67081380367b05080ab5518baacdddafd7c34.tar.gz |
package.bbclass: skip already-stripped QA test if asked for
Some packages like grub have already stripped binaries e.g.
ERROR: QA Issue: File '/boot/grub/kernel.img' from grub was already
stripped, this will prevent future debugging!
ERROR: QA run found fatal errors. Please consider fixing them.
We would like to have a possibility to skip it using something like
INSANE_SKIP_${PN} = "already-stripped"
This adds the logic to do so
it acts at PN level and not at package level. so something like
INSANE_SKIP_${PN}-misc = "already-stripped" wont work.
(From OE-Core rev: 765982f4c050d9cd3eb608d630312da482c737c7)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 50490bc89d..599df246f0 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -811,8 +811,11 @@ python split_and_strip_files () { | |||
811 | elf_file = isELF(file) | 811 | elf_file = isELF(file) |
812 | if elf_file & 1: | 812 | if elf_file & 1: |
813 | if elf_file & 2: | 813 | if elf_file & 2: |
814 | msg = "File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn) | 814 | if 'already-stripped' in (d.getVar('INSANE_SKIP_' + pn, True) or "").split(): |
815 | package_qa_handle_error("already-stripped", msg, d) | 815 | bb.note("Skipping file %s from %s for already-stripped QA test" % (file[len(dvar):], pn)) |
816 | else: | ||
817 | msg = "File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn) | ||
818 | package_qa_handle_error("already-stripped", msg, d) | ||
816 | continue | 819 | continue |
817 | # Check if it's a hard link to something else | 820 | # Check if it's a hard link to something else |
818 | if s.st_nlink > 1: | 821 | if s.st_nlink > 1: |