Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#78384 - 07/03/2002 14:22 Creating patches?
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Ok, this is probably basic, but I'm a newbie to the world of kernel hacking.

How do I create a patchfile that only looks for changes to .c and .h files? diff -Naur linux-empeg linux-empeg.new pulls in binary objects etc..

This has got to be basic.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#78385 - 07/03/2002 14:55 Re: Creating patches? [Re: genixia]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Use the option ``--exclude=*.o''. You might need to escape that asterisk somehow, depending on your shell. (Backslashes and single-quotes are good bets.)
_________________________
Bitt Faulk

Top
#78386 - 07/03/2002 15:39 Re: Creating patches? [Re: wfaulk]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Hey, that got me looking in the right direction..I found a dontdiff file that is used with '-X dontdiff'. dontdiff is a line delimited list of files types to exclude. I needed to add a couple of items to the list, but I'm all set.

Thanks.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#78387 - 07/03/2002 15:55 Re: Creating patches? [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
I always just do "make mrproper" in the kernel top level directory, and then run a recursive diff against the "virgin" tree. Something like this:

diff -u --recursive --new-file --exclude=zImage --exclude=config.ini --exclude=.\* --exclude=${0##*/} linux-v2b11/ hijack/


Top