I manage 2 & 3. 3 saves quite a heap of space. Several megabytes.
2 I manage with a little script I have added into patch-kernel that removes
any patches for non-i386 architecture-specific files so that patch doesn't
complain.
I've threatened several times to write a couple of scripts to split up the
tarballs and patches. I might actually do it someday and see if I can run
it on the kernel mirror we have here at Monash.
> applying whole-tree patches to a partial tree (this would take at
> least a smarter patch tool and probably a new patch format as well).
> There also may be valid objections I don't remember or which are
> new...
OK, for instance, put this in between uncompress and patch:
#!/usr/bin/gawk -f
/^diff .*\/arch\/i386/ { printit=1; print ; next }
/^diff .*\/arch\// { printit=0; next; }
/^diff .*\/include\/asm-i386/ { printit=1; print; next }
/^diff .*\/include\/asm-generic/ { printit=1; print; next }
/^diff .*\/include\/asm-/ { printit=0; next }
/^diff / { printit=1; print; next}
printit { print }
{ next }
eg my patch-kernel looks like this in the middle:
if $uncomp ${patchdir}/${patch}${ext} | /usr/local/bin/pgrep | patch -p1 -s -N -E -d $sourcedir
where pgrep is the 'patch-grep' script above. Works fine. Has been for at
least 8 months which was when I sent rm-rf through the arch directories.
-- [======================================================================] [ Kevin Lentin Email: K.Lentin@cs.monash.edu.au ] [ finger kevinl@fangorn.cs.monash.edu.au for PGP public key block. ] [ KeyId: 06808EED FingerPrint: 6024308DE1F84314 811B511DBA6FD596 ] [======================================================================]- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu