[oe-commits] Khem Raj : package.bbclass: skip already-stripped QA test if asked for

git at git.openembedded.org git at git.openembedded.org
Fri Sep 6 21:37:51 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 60b8e95d54352c9c0defee11bbed1bfcda258235
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=60b8e95d54352c9c0defee11bbed1bfcda258235

Author: Khem Raj <raj.khem at gmail.com>
Date:   Fri Sep  6 01:35:23 2013 -0700

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.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 50490bc..96e649a 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -811,8 +811,11 @@ python split_and_strip_files () {
                     elf_file = isELF(file)
                     if elf_file & 1:
                         if elf_file & 2:
-                            msg = "File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn)
-                            package_qa_handle_error("already-stripped", msg, d)
+                            if 'already-stripped' in (d.getVar('INSANE_SKIP_' + pn, True) or "").split():
+                                bb.note("Package %s skipping already-stripped QA test" % (pn))
+                            else:
+                                msg = "File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn)
+                                package_qa_handle_error("already-stripped", msg, d)
                             continue
                         # Check if it's a hard link to something else
                         if s.st_nlink > 1:



More information about the Openembedded-commits mailing list