On Fri, 2007-09-28 at 19:28 +0100, Mel Gorman wrote:
<snip>
Mel:
When I'm rebasing a patch series, I use a little script [shell function,
actually] to make just the sources modified by each patch, before moving
on to the next. That way, I have fewer log messages to look at, and
warnings and such jump out so I can fix them while I'm at the patch that
causes them. That's how I caught this one. Here's the script, in case
you're interested:
--------------------------
#qm - quilt make -- attempt to compile all .c's in patch
# Note: some files might not compile if they wouldn't build in
# the current config.
qm()
{
# __in_ktree qm || return
make silentoldconfig; # in case patch changes a Kconfig*
quilt files | \
while read file xxx
do
ftype=${file##*.}
if [[ "$ftype" != "c" ]]
then
# echo "Skipping $file" >&2
continue
fi
f=${file%.*}
echo "make $f.o" >&2
make $f.o
done
}
---------------------------
This is part of a larger set of quilt wrappers that, being basically
lazy, I use to reduce typing. I've commented out one dependency on
other parts of the "environment". To use this, I build an unpatched
kernel before starting the rebase, so that the .config and all of the
pieces are in place for the incremental makes.
Works for me...
Later,
Lee
-