summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/psplash
diff options
context:
space:
mode:
authorPeter Tworek <tworaz666@gmail.com>2012-03-06 17:03:13 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-08 19:55:36 (GMT)
commit7931b644c5da4b4a2447fd0f6660792a2d79cc41 (patch)
tree00fdea1c5e714bddd1d75af7ccd829ced19fefc2 /meta/recipes-core/psplash
parent8ed044e4999175f8b5e2e3f33a81d2411d5e9e04 (diff)
downloadpoky-7931b644c5da4b4a2447fd0f6660792a2d79cc41.tar.gz
psplash: Add mising commands module import.
Python commands module is used in the recipe, but never imported. This leads to build errors like: NameError: global name 'commands' is not defined ERROR: The stack trace of python calls that resulted in this exception/failure was: ERROR: File "do_compile", line 24, in <module> ERROR: ERROR: File "do_compile", line 11, in do_compile ERROR: ERROR: The code that was being executed was: ERROR: 0020: bb.build.exec_func("oe_runmake", d) ERROR: 0021: shutil.copyfile("psplash", outputfile) ERROR: 0022: ERROR: 0023: ERROR: *** 0024:do_compile(d) ERROR: 0025: ERROR: (file: 'do_compile', lineno: 24, function: <module>) ERROR: 0007: localfiles = d.getVar('SPLASH_LOCALPATHS', True).split() ERROR: 0008: outputfiles = d.getVar('SPLASH_INSTALL', True).split() ERROR: 0009: for localfile, outputfile in zip(localfiles, outputfiles): ERROR: 0010: if localfile.endswith(".png"): ERROR: *** 0011: outp = commands.getstatusoutput('./make-image-header.sh %s POKY' % localfile) ERROR: 0012: print(outp[1]) ERROR: 0013: fbase = os.path.splitext(os.path.basename(localfile))[0] ERROR: 0014: shutil.copyfile("%s-img.h" % fbase, destfile) ERROR: 0015: else: (From OE-Core rev: 34bdb9a459208377210454e54635afb9404ee126) Signed-off-by: Peter Tworek <tworaz666@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/psplash')
-rw-r--r--meta/recipes-core/psplash/psplash_git.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb
index 42ea615..bd405f9 100644
--- a/meta/recipes-core/psplash/psplash_git.bb
+++ b/meta/recipes-core/psplash/psplash_git.bb
@@ -68,7 +68,7 @@ S = "${WORKDIR}/git"
68inherit autotools pkgconfig update-rc.d 68inherit autotools pkgconfig update-rc.d
69 69
70python do_compile () { 70python do_compile () {
71 import shutil 71 import shutil, commands
72 72
73 # Build a separate executable for each splash image 73 # Build a separate executable for each splash image
74 destfile = "%s/psplash-poky-img.h" % d.getVar('S', True) 74 destfile = "%s/psplash-poky-img.h" % d.getVar('S', True)