[oe-commits] Richard Purdie : psplash: Fix case where ${B} != ${S}

git at git.openembedded.org git at git.openembedded.org
Mon Mar 18 13:17:04 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 4ddb7b870a2ddbf48ebf1ec2e454dc7421285202
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4ddb7b870a2ddbf48ebf1ec2e454dc7421285202

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Mar 18 01:32:16 2013 +0000

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

Allow out of tree builds to work by using the full path to the
source file.

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

---

 meta/recipes-core/psplash/psplash_git.bb |    2 +-
 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 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)
 }





More information about the Openembedded-commits mailing list