[oe-commits] Richard Purdie : package: Hardlink debug source to improve performance

git at git.openembedded.org git at git.openembedded.org
Tue Oct 23 11:29:23 UTC 2012


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

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Oct 22 10:39:33 2012 +0000

package: Hardlink debug source to improve performance

When copying the source files needed for the -dbg package, use hardlinks
where possible. This saves some disk space and hence helps performance
of the builds.

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

---

 meta/classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 7544423..15e505d 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -292,7 +292,7 @@ def splitfile2(debugsrcdir, d):
         # We need to ignore files that are not actually ours
         # we do this by only paying attention to items from this package
         processdebugsrc += "fgrep -z '%s' | "
-        processdebugsrc += "(cd '%s' ; cpio -pd0mL --no-preserve-owner '%s%s' 2>/dev/null)"
+        processdebugsrc += "(cd '%s' ; cpio -pd0mlL --no-preserve-owner '%s%s' 2>/dev/null)"
 
         subprocess.call(processdebugsrc % (sourcefile, workbasedir, workparentdir, dvar, debugsrcdir), shell=True)
 





More information about the Openembedded-commits mailing list