]> code.ossystems Code Review - openembedded-core.git/commitdiff
package: Hardlink debug source to improve performance
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Oct 2012 10:39:33 +0000 (10:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Oct 2012 11:27:13 +0000 (12:27 +0100)
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>
meta/classes/package.bbclass

index 75444235bc4aedd9a09ec89ce4814dcc4f95464b..15e505d4d68c701384c8793b2776a4dc52aabffa 100644 (file)
@@ -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)