Patchwork psplash: Fix case where ${B} != ${S}

login
register
mail settings
Submitter Richard Purdie
Date March 18, 2013, 1:32 a.m.
Message ID <1363570336.4315.31.camel@ted>
Download mbox | patch
Permalink /patch/46325/
State Accepted
Commit 297f6f5da1b6b9421ae435eb4df3996116e258f0
Headers show

Comments

Richard Purdie - March 18, 2013, 1:32 a.m.
Allow out of tree builds to work by using the full path to the
source file.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb
index 482670d..5413b24 100644
--- a/meta/recipes-core/psplash/psplash_git.bb
+++ b/meta/recipes-core/psplash/psplash_git.bb
@@ -87,7 +87,7 @@  python do_compile () {
             shutil.copyfile(localfile, destfile)
         # For some reason just updating the header is not enough, we have to touch the .c
         # file in order to get it to rebuild
-        os.utime("psplash.c", None)
+        os.utime("%s/psplash.c" % d.getVar('S', True), None)
         bb.build.exec_func("oe_runmake", d)
         shutil.copyfile("psplash", outputfile)
 }