Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOW TO: Patching a Kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
travail101
n00b
n00b


Joined: 30 Apr 2004
Posts: 12
Location: United States of America

PostPosted: Sun Apr 03, 2005 11:39 am    Post subject: HOW TO: Patching a Kernel Reply with quote

I always have this problem when rolling a new kernel and never can find a good source to refer to when I google it, so I'm puting what I know here for me and others like me to reference later.

Patching the kernel with the following:

For Starters enter your Kernel Source directory
Code:
cd /usr/src/linux


Then apply the patch, here's the command for the following types/compressions
.diff & .patch:
Code:
patch -p1 < patch-file.diff
or
Code:
cat patch-file.patch | patch -p1

.gz:
Code:
zcat patch-file.gz | patch -p1

.bz2:
Code:
bzcat patch-file.gz | patch -p1


Please correct any mistakes, and add any missing info in replies if you would :-D

EDIT: yeah.. I'm hearing they are the same... post edited =D


Last edited by travail101 on Sun Apr 03, 2005 3:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
LordArthas
Guru
Guru


Joined: 01 Nov 2004
Posts: 497
Location: Maniago, Friûl, Italia

PostPosted: Sun Apr 03, 2005 11:42 am    Post subject: Re: HOW TO: Patching a Kernel Reply with quote

Hi!

Quote:

.diff:
Code:
patch -p1 < patch-file.diff

.patch:
Code:
cat patch-file.patch | patch -p1



Aren't these two the same? I mean, also for the first you can write:

.diff:
Code:
cat patch-file.diff | patch -p1


Michele.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum