All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] package: Hardlink debug source to improve performance
@ 2012-10-22 10:52 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-10-22 10:52 UTC (permalink / raw)
  To: openembedded-core

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@linuxfoundation.org>
---
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)"
 
         subprocess.call(processdebugsrc % (sourcefile, workbasedir, workparentdir, dvar, debugsrcdir), shell=True)
 





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-22 11:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 10:52 [PATCH] package: Hardlink debug source to improve performance Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.