[oe-commits] Khem Raj : lib/oe/patch.py: Dont import patches but symlink them instead
git version control
git at git.openembedded.org
Thu Jun 10 22:36:09 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 7dc8f297689cdbba9021c2c620bd025ca234c58a
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=7dc8f297689cdbba9021c2c620bd025ca234c58a
Author: Khem Raj <raj.khem at gmail.com>
Date: Wed Jun 9 14:36:15 2010 +0000
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 at gmail.com>
Acked-by: Chris Larson <chris_larson at mentor.com>
Acked-by: Roman I Khimov <khimov at altell.ru>
---
lib/oe/patch.py | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/lib/oe/patch.py b/lib/oe/patch.py
index 7f6b0fe..607ad44 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"])
More information about the Openembedded-commits
mailing list