gut.
Das rekursive Kopieren '-r' einer Datei ist unnötig.
Tip für 'make menuconfig',
CONFIG_DEBUG_INFO deaktivieren, spart einige GB an Kompilierplatz.
(und wohl auch einige Zeit)
allgemein für Multicore-Prozessoren
'make-kpkg --jobs CPU+1 .....'
Um nebenbei noch arbeiten zu können, das Skript per 'nice' aufrufen,
oder den letzten Befehl als
'nice fakeroot make-kpkg ......'
---------------------------------------------------
Was ich früher gerne gemacht habe,
Das kernel-Verzeichnis per 'lndir' (xutils-dev) auf ein tmpfs zu bringen.
Leider ist dann das vom kerneleigenen 'make deb-pkg' erstellte header-Paket unbrauchbar,
da es die lndir-Links enthält statt die verlinkten Dateien.
Ein denkbarer Patch dafür könnte sowas in der Art sein:
http://nopaste.debianforum.de/37338
Code: Alles auswählen
--- a/scripts/package/builddeb 2013-08-04 10:51:49.000000000 +0200
+++ lndir-Links-Fix/scripts/package/builddeb 2013-08-14 08:23:02.417725740 +0200
@@ -244,12 +244,12 @@
# Build header package
(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
-(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
-(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
+(cd $srctree; find arch/$SRCARCH/include include scripts ! -type d >> "$objtree/debian/hdrsrcfiles")
+(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts ! -type d >> "$objtree/debian/hdrobjfiles")
destdir=$kernel_headers_dir/usr/src/linux-headers-$version
mkdir -p "$destdir"
-(cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
-(cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
+(cd $srctree; tar -c -h -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
+(cd $objtree; tar -c -h -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build"
rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles"
arch=$(dpkg --print-architecture)
(EDIT)
EDIT ab kernel 3.12 ein etwas veränderter Patch
Code: Alles auswählen
--- a/scripts/package/builddeb 2013-11-26 04:00:00.000000000 +0200
+++ lndir-Links-Fix/scripts/package/builddeb 2013-11-26 04:04:00.000000000 +0200
@@ -279,12 +279,12 @@
# Build header package
(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
-(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
-(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
+(cd $srctree; find arch/$SRCARCH/include include scripts ! -type d >> "$objtree/debian/hdrsrcfiles")
+(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts ! -type d >> "$objtree/debian/hdrobjfiles")
destdir=$kernel_headers_dir/usr/src/linux-headers-$version
mkdir -p "$destdir"
-(cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
-(cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
+(cd $srctree; tar -c -h -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
+(cd $objtree; tar -c -h -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
(cd $objtree; cp $KCONFIG_CONFIG $destdir/.config) # copy .config manually to be where it's expected to be
ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build"
rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles"