summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-14 14:40:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-15 11:23:11 +0000
commit9726b66a1b6ecd52333d1a990046885f96551c3e (patch)
treea6db57a4eddd7dd6e193379f1e8d7335d233e8b8 /meta/classes/package.bbclass
parent54dd6876202957ceb92adb84c299d695d2d06460 (diff)
downloadpoky-9726b66a1b6ecd52333d1a990046885f96551c3e.tar.gz
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. (From OE-Core rev: 92845c65f8801de7dfa34c87b22ca2e66f18557a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 6a7f35a3e7..90e523693d 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -946,6 +946,7 @@ python split_and_strip_files () {
946 inodes = {} 946 inodes = {}
947 libdir = os.path.abspath(dvar + os.sep + d.getVar("libdir")) 947 libdir = os.path.abspath(dvar + os.sep + d.getVar("libdir"))
948 baselibdir = os.path.abspath(dvar + os.sep + d.getVar("base_libdir")) 948 baselibdir = os.path.abspath(dvar + os.sep + d.getVar("base_libdir"))
949 skipfiles = (d.getVar("INHIBIT_PACKAGE_STRIP_FILES") or "").split()
949 if (d.getVar('INHIBIT_PACKAGE_STRIP') != '1' or \ 950 if (d.getVar('INHIBIT_PACKAGE_STRIP') != '1' or \
950 d.getVar('INHIBIT_PACKAGE_DEBUG_SPLIT') != '1'): 951 d.getVar('INHIBIT_PACKAGE_DEBUG_SPLIT') != '1'):
951 for root, dirs, files in cpath.walk(dvar): 952 for root, dirs, files in cpath.walk(dvar):
@@ -961,6 +962,9 @@ python split_and_strip_files () {
961 if debugdir and debugdir in os.path.dirname(file[len(dvar):]): 962 if debugdir and debugdir in os.path.dirname(file[len(dvar):]):
962 continue 963 continue
963 964
965 if file in skipfiles:
966 continue
967
964 try: 968 try:
965 ltarget = cpath.realpath(file, dvar, False) 969 ltarget = cpath.realpath(file, dvar, False)
966 s = cpath.lstat(ltarget) 970 s = cpath.lstat(ltarget)