mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 21:59:42 +01:00
psplash: Clean up getstatusoutput usage
Replace usage of oe.utils.getstatusoutput() with direct subprocess calls. (From OE-Core rev: 2a06abb258768504a3ad97f61c987709227d7109) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
37b1ed066d
commit
1ad6e2cd04
@@ -73,6 +73,8 @@ ALTERNATIVE_LINK_NAME[psplash] = "${bindir}/psplash"
|
||||
|
||||
python do_compile () {
|
||||
import shutil
|
||||
import subprocess
|
||||
import shlex
|
||||
|
||||
# Build a separate executable for each splash image
|
||||
workdir = d.getVar('WORKDIR')
|
||||
@@ -82,8 +84,7 @@ python do_compile () {
|
||||
outputfiles = d.getVar('SPLASH_INSTALL').split()
|
||||
for localfile, outputfile in zip(localfiles, outputfiles):
|
||||
if localfile.endswith(".png"):
|
||||
outp = oe.utils.getstatusoutput('%s %s POKY' % (convertscript, os.path.join(workdir, localfile)))
|
||||
print(outp[1])
|
||||
subprocess.call(shlex.split('%s %s POKY' % (convertscript, os.path.join(workdir, localfile))))
|
||||
fbase = os.path.splitext(localfile)[0]
|
||||
shutil.copyfile("%s-img.h" % fbase, destfile)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user