Skip to contentSkip to conversation

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

PATCH New Richard Purdie 1 participant 1 message Mar 18, 2013

lore
Share & tools
lore
#0 lore raw

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

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

---

meta/recipes-core/psplash/psplash_git.bb +1 -1
index 482670d..5413b24 100644
@@ -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)
 }