summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/psplash/psplash_git.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb
index aab2c0360d..3ad1ef4815 100644
--- a/meta/recipes-core/psplash/psplash_git.bb
+++ b/meta/recipes-core/psplash/psplash_git.bb
@@ -73,6 +73,8 @@ ALTERNATIVE_LINK_NAME[psplash] = "${bindir}/psplash"
73 73
74python do_compile () { 74python do_compile () {
75 import shutil 75 import shutil
76 import subprocess
77 import shlex
76 78
77 # Build a separate executable for each splash image 79 # Build a separate executable for each splash image
78 workdir = d.getVar('WORKDIR') 80 workdir = d.getVar('WORKDIR')
@@ -82,8 +84,7 @@ python do_compile () {
82 outputfiles = d.getVar('SPLASH_INSTALL').split() 84 outputfiles = d.getVar('SPLASH_INSTALL').split()
83 for localfile, outputfile in zip(localfiles, outputfiles): 85 for localfile, outputfile in zip(localfiles, outputfiles):
84 if localfile.endswith(".png"): 86 if localfile.endswith(".png"):
85 outp = oe.utils.getstatusoutput('%s %s POKY' % (convertscript, os.path.join(workdir, localfile))) 87 subprocess.call(shlex.split('%s %s POKY' % (convertscript, os.path.join(workdir, localfile))))
86 print(outp[1])
87 fbase = os.path.splitext(localfile)[0] 88 fbase = os.path.splitext(localfile)[0]
88 shutil.copyfile("%s-img.h" % fbase, destfile) 89 shutil.copyfile("%s-img.h" % fbase, destfile)
89 else: 90 else: