package.bbclass: Allow INHIBIT_PACKAGE_STRIP_FILES to skip .ko and static libs

Change the order of the skip processing to happen before any .ko and static
library processing.  This will allow these types of files to be individually
skipped if necessary.

(From OE-Core rev: c50fcd54ffe60b63d042d05e6cf538a593dc410f)

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mark Hatle
2020-02-07 14:20:07 -06:00
committed by Richard Purdie
parent 6a543159a3
commit dae03ec7e8

View File

@@ -955,12 +955,6 @@ python split_and_strip_files () {
for root, dirs, files in cpath.walk(dvar):
for f in files:
file = os.path.join(root, f)
if file.endswith(".ko") and file.find("/lib/modules/") != -1:
kernmods.append(file)
continue
if oe.package.is_static_lib(file):
staticlibs.append(file)
continue
# Skip debug files
if debugappend and file.endswith(debugappend):
@@ -971,6 +965,13 @@ python split_and_strip_files () {
if file in skipfiles:
continue
if file.endswith(".ko") and file.find("/lib/modules/") != -1:
kernmods.append(file)
continue
if oe.package.is_static_lib(file):
staticlibs.append(file)
continue
try:
ltarget = cpath.realpath(file, dvar, False)
s = cpath.lstat(ltarget)