package: Hardlink debug source to improve performance

Submitted by Richard Purdie on Oct. 22, 2012, 10:52 a.m. | Patch ID: 38403


Message ID 1350903173.2520.73.camel@ted
State Accepted
Commit d59d4306fca664182e48c17e7bb79702f695dfcc
Headers show

Commit Message

Richard Purdie Oct. 22, 2012, 10:52 a.m.
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 <>

Patch hide | download patch | download mbox

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 76979bd..68b407b 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)"
  % (sourcefile, workbasedir, workparentdir, dvar, debugsrcdir), shell=True)