diff options
Diffstat (limited to 'meta/recipes-core/psplash')
-rw-r--r-- | meta/recipes-core/psplash/psplash_git.bb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb index 0537426513..b0d6bb4070 100644 --- a/meta/recipes-core/psplash/psplash_git.bb +++ b/meta/recipes-core/psplash/psplash_git.bb | |||
@@ -16,8 +16,8 @@ SRC_URI = "git://git.yoctoproject.org/${BPN} \ | |||
16 | SPLASH_IMAGES = "file://psplash-poky-img.h;outsuffix=default" | 16 | SPLASH_IMAGES = "file://psplash-poky-img.h;outsuffix=default" |
17 | 17 | ||
18 | python __anonymous() { | 18 | python __anonymous() { |
19 | oldpkgs = d.getVar("PACKAGES", True).split() | 19 | oldpkgs = d.getVar("PACKAGES").split() |
20 | splashfiles = d.getVar('SPLASH_IMAGES', True).split() | 20 | splashfiles = d.getVar('SPLASH_IMAGES').split() |
21 | pkgs = [] | 21 | pkgs = [] |
22 | localpaths = [] | 22 | localpaths = [] |
23 | haspng = False | 23 | haspng = False |
@@ -50,8 +50,8 @@ python __anonymous() { | |||
50 | d.appendVar("DEPENDS", " gdk-pixbuf-native") | 50 | d.appendVar("DEPENDS", " gdk-pixbuf-native") |
51 | 51 | ||
52 | d.prependVar("PACKAGES", "%s " % (" ".join(pkgs))) | 52 | d.prependVar("PACKAGES", "%s " % (" ".join(pkgs))) |
53 | mlprefix = d.getVar('MLPREFIX', True) or '' | 53 | mlprefix = d.getVar('MLPREFIX') or '' |
54 | pn = d.getVar('PN', True) or '' | 54 | pn = d.getVar('PN') or '' |
55 | for p in pkgs: | 55 | for p in pkgs: |
56 | ep = '%s%s' % (mlprefix, p) | 56 | ep = '%s%s' % (mlprefix, p) |
57 | epsplash = '%s%s' % (mlprefix, 'psplash') | 57 | epsplash = '%s%s' % (mlprefix, 'psplash') |
@@ -74,11 +74,11 @@ python do_compile () { | |||
74 | import shutil | 74 | import shutil |
75 | 75 | ||
76 | # Build a separate executable for each splash image | 76 | # Build a separate executable for each splash image |
77 | workdir = d.getVar('WORKDIR', True) | 77 | workdir = d.getVar('WORKDIR') |
78 | convertscript = "%s/make-image-header.sh" % d.getVar('S', True) | 78 | convertscript = "%s/make-image-header.sh" % d.getVar('S') |
79 | destfile = "%s/psplash-poky-img.h" % d.getVar('S', True) | 79 | destfile = "%s/psplash-poky-img.h" % d.getVar('S') |
80 | localfiles = d.getVar('SPLASH_LOCALPATHS', True).split() | 80 | localfiles = d.getVar('SPLASH_LOCALPATHS').split() |
81 | outputfiles = d.getVar('SPLASH_INSTALL', True).split() | 81 | outputfiles = d.getVar('SPLASH_INSTALL').split() |
82 | for localfile, outputfile in zip(localfiles, outputfiles): | 82 | for localfile, outputfile in zip(localfiles, outputfiles): |
83 | if localfile.endswith(".png"): | 83 | if localfile.endswith(".png"): |
84 | outp = oe.utils.getstatusoutput('%s %s POKY' % (convertscript, os.path.join(workdir, localfile))) | 84 | outp = oe.utils.getstatusoutput('%s %s POKY' % (convertscript, os.path.join(workdir, localfile))) |
@@ -89,7 +89,7 @@ python do_compile () { | |||
89 | shutil.copyfile(os.path.join(workdir, localfile), destfile) | 89 | shutil.copyfile(os.path.join(workdir, localfile), destfile) |
90 | # For some reason just updating the header is not enough, we have to touch the .c | 90 | # For some reason just updating the header is not enough, we have to touch the .c |
91 | # file in order to get it to rebuild | 91 | # file in order to get it to rebuild |
92 | os.utime("%s/psplash.c" % d.getVar('S', True), None) | 92 | os.utime("%s/psplash.c" % d.getVar('S'), None) |
93 | bb.build.exec_func("oe_runmake", d) | 93 | bb.build.exec_func("oe_runmake", d) |
94 | shutil.copyfile("psplash", outputfile) | 94 | shutil.copyfile("psplash", outputfile) |
95 | } | 95 | } |