[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: understanding kernel compilation and



Thanks for your guidence, 
can you please share that i do not see kernel architecture on the website. does that kernel file contain both x86 and amd64?

On Thu, Oct 23, 2014 at 2:51 PM, tv.debian@googlemail.com <tv.debian@googlemail.com> wrote:
On 23/10/2014 10:20, Muhammad Yousuf Khan wrote:
actually i never compile or patch any kernel before for some reasons and
learning i am installing kernel 3.16 stable with patch.
now the question is when i visit kernel.org website i see 3.16 kernel and
patch and inc.patch.

i can understand what is patch it could be a fix to some bugs but what is
inc.patch or incremental patch.


Kernel location :
https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.6.tar.xz
Patch location :
https://www.kernel.org/pub/linux/kernel/v3.x/patch-3.16.6.xz
inc patch :
https://www.kernel.org/pub/linux/kernel/v3.x/incr/patch-3.16.5-6.xz

any help will be highly appreciated.

Thanks,
Yousuf



Hello,

incremental patches do what is implied by the naming, they move from one minor version in a branch to the next, patch-3.16.5-6.xz moves from 3.16.5 to 6, so has to be applied to 3.16.5 (only).

Patches to 3.x.y versions are meant to be applied to the previous main version in the branch, patch-3.16.6.xz is to be applied to 3.16 sources (not 3.16.5) and will take you all the way to 3.16.6.

Patches to main 3.x versions are to be applied to the previous main version "3.(x-1)", for instance patch-3.16.xz is to be applied to kernel sources 3.15

You can see this in the patch itself, toward the beginning you will see a section like this:

"
 VERSION = 3
 PATCHLEVEL = 16
-SUBLEVEL = 0
+SUBLEVEL = 6
"

You can see that in "diff" parlance the "-" minus sign before "SUBLEVEL = 0" means it is removed and replaced by the line beginning with the "+" plus sign "SUBLEVEL = 6".

You may also notice that the sizes of the patches are quite different due to the amount of changes they carry.

Don't forget to rename the source directory after patching to keep track of the real version of the sources.

Hope it helps.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 5448CFAA.7040600@googlemail.com" target="_blank">https://lists.debian.org/5448CFAA.7040600@googlemail.com



Reply to: