diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/psplash/psplash_git.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb index 3ad1ef4815..3161a5e3f1 100644 --- a/meta/recipes-core/psplash/psplash_git.bb +++ b/meta/recipes-core/psplash/psplash_git.bb | |||
@@ -74,7 +74,6 @@ ALTERNATIVE_LINK_NAME[psplash] = "${bindir}/psplash" | |||
74 | python do_compile () { | 74 | python do_compile () { |
75 | import shutil | 75 | import shutil |
76 | import subprocess | 76 | import subprocess |
77 | import shlex | ||
78 | 77 | ||
79 | # Build a separate executable for each splash image | 78 | # Build a separate executable for each splash image |
80 | workdir = d.getVar('WORKDIR') | 79 | workdir = d.getVar('WORKDIR') |
@@ -84,9 +83,10 @@ python do_compile () { | |||
84 | outputfiles = d.getVar('SPLASH_INSTALL').split() | 83 | outputfiles = d.getVar('SPLASH_INSTALL').split() |
85 | for localfile, outputfile in zip(localfiles, outputfiles): | 84 | for localfile, outputfile in zip(localfiles, outputfiles): |
86 | if localfile.endswith(".png"): | 85 | if localfile.endswith(".png"): |
87 | subprocess.call(shlex.split('%s %s POKY' % (convertscript, os.path.join(workdir, localfile)))) | 86 | if subprocess.call([ convertscript, os.path.join(workdir, localfile), 'POKY' ], cwd=workdir): |
87 | bb.fatal("Error calling convert script '%s'" % (convertscript)) | ||
88 | fbase = os.path.splitext(localfile)[0] | 88 | fbase = os.path.splitext(localfile)[0] |
89 | shutil.copyfile("%s-img.h" % fbase, destfile) | 89 | shutil.copyfile(os.path.join(workdir, "%s-img.h" % fbase), destfile) |
90 | else: | 90 | else: |
91 | shutil.copyfile(os.path.join(workdir, localfile), destfile) | 91 | shutil.copyfile(os.path.join(workdir, localfile), destfile) |
92 | # For some reason just updating the header is not enough, we have to touch the .c | 92 | # For some reason just updating the header is not enough, we have to touch the .c |