[oe-commits] [openembedded-core] 01/02: package: Add INHIBIT_PACKAGE_STRIP_FILES to allow files to remain unstripped

git at git.openembedded.org git at git.openembedded.org
Wed Feb 14 15:28:02 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 92845c65f8801de7dfa34c87b22ca2e66f18557a
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Feb 14 14:40:55 2018 +0000

    package: Add INHIBIT_PACKAGE_STRIP_FILES to allow files to remain unstripped
    
    There are cases where its useful to allow only a select few files
    to be excluded from the package stripping mechanism. Currently
    this isn't possible so add a variable to allow this.
    
    This is to be used sparingly as in general the core code should be
    doing the right thing. This is better than the alternative of leaving the whole
    package unstripped.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/package.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 6a7f35a..90e5236 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -946,6 +946,7 @@ python split_and_strip_files () {
     inodes = {}
     libdir = os.path.abspath(dvar + os.sep + d.getVar("libdir"))
     baselibdir = os.path.abspath(dvar + os.sep + d.getVar("base_libdir"))
+    skipfiles = (d.getVar("INHIBIT_PACKAGE_STRIP_FILES") or "").split()
     if (d.getVar('INHIBIT_PACKAGE_STRIP') != '1' or \
             d.getVar('INHIBIT_PACKAGE_DEBUG_SPLIT') != '1'):
         for root, dirs, files in cpath.walk(dvar):
@@ -961,6 +962,9 @@ python split_and_strip_files () {
                 if debugdir and debugdir in os.path.dirname(file[len(dvar):]):
                     continue
 
+                if file in skipfiles:
+                    continue
+
                 try:
                     ltarget = cpath.realpath(file, dvar, False)
                     s = cpath.lstat(ltarget)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list