How to make kernel patches

Pavel Machek (pavel@atrey.karlin.mff.cuni.cz)
Thu, 12 Jun 1997 14:14:49 +0200


hey all,

Can someone tell me if there is a good trick for making
compilations of kernel diffs? Just a command which compares two kernel
trees and only includes the neccesary files to patch from one to another.
It seems there should be some sort of utility for doing it, (knowing to
ignore *.o and .config and .depend, etc) but i haven't been able to find
one. diff(1) -r doesn't seem to be working too well for this. Thanks,

Jeremy

Hi. Put this into linux/scripts/diff-tree. (What about putting this
into official kernel?)

#!/bin/bash
diff -uNr -x '.dep*' -x '.hdep*' -x '*.[oas]' -x '*~' -x '#*' -x '*CVS*' -x '*.orig' -x '*.rej' -x '*.old' -x '.menu*' -x asm -x local.h -x 'System.map' -x autoconf.h -x compile.h -x version.h -x .version -x defkaymap.c -x uni_hash.tbl $1 $2

-- 
--
This is my little buggy signature...				Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

-----End of forwarded message-----

-- 
--
This is my little buggy signature...				Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+