summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 96228b0bc0..1dba185b3e 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -233,7 +233,7 @@ def splitdebuginfo(file, debugfile, debugsrcdir, d):
233 # 233 #
234 # sourcefile is also generated containing a list of debugsources 234 # sourcefile is also generated containing a list of debugsources
235 235
236 import commands, stat, subprocess 236 import stat, subprocess
237 237
238 dvar = d.getVar('PKGD', True) 238 dvar = d.getVar('PKGD', True)
239 objcopy = d.getVar("OBJCOPY", True) 239 objcopy = d.getVar("OBJCOPY", True)
@@ -283,7 +283,7 @@ def copydebugsources(debugsrcdir, d):
283 # The debug src information written out to sourcefile is further procecessed 283 # The debug src information written out to sourcefile is further procecessed
284 # and copied to the destination here. 284 # and copied to the destination here.
285 285
286 import commands, stat, subprocess 286 import stat, subprocess
287 287
288 sourcefile = d.expand("${WORKDIR}/debugsources.list") 288 sourcefile = d.expand("${WORKDIR}/debugsources.list")
289 if debugsrcdir and os.path.isfile(sourcefile): 289 if debugsrcdir and os.path.isfile(sourcefile):
@@ -696,7 +696,7 @@ python fixup_perms () {
696} 696}
697 697
698python split_and_strip_files () { 698python split_and_strip_files () {
699 import commands, stat, errno, subprocess 699 import stat, errno, subprocess
700 700
701 dvar = d.getVar('PKGD', True) 701 dvar = d.getVar('PKGD', True)
702 pn = d.getVar('PN', True) 702 pn = d.getVar('PN', True)
@@ -732,7 +732,7 @@ python split_and_strip_files () {
732 # 16 - kernel module 732 # 16 - kernel module
733 def isELF(path): 733 def isELF(path):
734 type = 0 734 type = 0
735 ret, result = commands.getstatusoutput("file '%s'" % path) 735 ret, result = subprocess.getstatusoutput("file '%s'" % path)
736 736
737 if ret: 737 if ret:
738 bb.error("split_and_strip_files: 'file %s' failed" % path) 738 bb.error("split_and_strip_files: 'file %s' failed" % path)