Skip to contentSkip to conversation

package: Hardlink debug source to improve performance

PATCH New Richard Purdie 1 participant 1 message Oct 22, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

meta/classes/package.bbclass +1 -1
index 76979bd..68b407b 100644
@@ -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)