diff options
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 7a49e4f351..02914b52bb 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -888,6 +888,7 @@ python fixup_perms () { | |||
888 | 888 | ||
889 | python split_and_strip_files () { | 889 | python split_and_strip_files () { |
890 | import stat, errno | 890 | import stat, errno |
891 | import subprocess | ||
891 | 892 | ||
892 | dvar = d.getVar('PKGD') | 893 | dvar = d.getVar('PKGD') |
893 | pn = d.getVar('PN') | 894 | pn = d.getVar('PN') |
@@ -933,12 +934,7 @@ python split_and_strip_files () { | |||
933 | # 16 - kernel module | 934 | # 16 - kernel module |
934 | def isELF(path): | 935 | def isELF(path): |
935 | type = 0 | 936 | type = 0 |
936 | ret, result = oe.utils.getstatusoutput("file -b '%s'" % path) | 937 | result = subprocess.check_output(["file", "-b", path], stderr=subprocess.STDOUT).decode("utf-8") |
937 | |||
938 | if ret: | ||
939 | msg = "split_and_strip_files: 'file %s' failed" % path | ||
940 | package_qa_handle_error("split-strip", msg, d) | ||
941 | return type | ||
942 | 938 | ||
943 | # Not stripped | 939 | # Not stripped |
944 | if "ELF" in result: | 940 | if "ELF" in result: |