summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-06-09 17:30:04 -0700
committerKhem Raj <raj.khem@gmail.com>2010-06-09 17:34:19 -0700
commit428c2de6d27dd49274b9884c3123b053c42af0ce (patch)
treea128b752221cf4677b9bc76595d55dea686843b0 /lib
parent0dc02df5726be8b3569d7c806b4f1036413b81ee (diff)
lib/oe/patch.py: Dont import patches but symlink them instead
* This patch removes the usage of quilt import <patch> instead it creasted a symlink to the patch in the patches directory and synthesizes the series file which otherwise would be done automatically by quilt import. * This should help a bit in reducing build time as it avoids copying of the patch and also other things that quilt import would otherwise do. * Tested by doing minimal-image on qemuarm. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/oe/patch.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/oe/patch.py b/lib/oe/patch.py
index 7f6b0fe8de..607ad44321 100644
--- a/lib/oe/patch.py
+++ b/lib/oe/patch.py
@@ -230,15 +230,10 @@ class QuiltTree(PatchSet):
if not self.initialized:
self.InitFromDir()
PatchSet.Import(self, patch, force)
-
- args = ["import", "-p", patch["strippath"]]
- if force:
- args.append("-f")
- args.append("-dn")
- args.append(patch["file"])
-
- self._runcmd(args)
-
+ os.symlink(patch["file"], self._quiltpatchpath(patch["file"]))
+ f = open(os.path.join(self.dir, "patches","series"), "a");
+ f.write(os.path.basename(patch["file"]) + " -p" + patch["strippath"]+"\n")
+ f.close()
patch["quiltfile"] = self._quiltpatchpath(patch["file"])
patch["quiltfilemd5"] = bb.utils.md5_file(patch["quiltfile"])