Skip to contentSkip to conversation

staging.bbclass: make already-stripped can be skipped

PATCH In review [email protected] 2 participants 2 messages Dec 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging.bbclass: make already-stripped can be skipped

From: Jackie Huang <[email protected]>

Add a check like what we does in package.bbclass so that the already-stripped QA test can be skipped.

---
 meta/classes/staging.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/classes/staging.bbclass +4 -1
index 967eddd..243bcdf 100644
@@ -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:
Signature · 1 line
2.3.5
#1 lore raw
Quoted 4 lines · On Wed, Dec 16, 2015 at 05:54:01PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Add a check like what we does in package.bbclass so that the already-stripped QA test can be skipped.

Cannot we use package_qa_handle_error function here? So that these issues end in qa.log and user/distro can easily define how important the warning is for them?

Quoted 29 lines
---
 meta/classes/staging.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/classes/staging.bbclass +4 -1
index 967eddd..243bcdf 100644
@@ -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:
Signature · 7 lines
2.3.5

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]