Project:Kernel/Gentoo-sources

Get the linux-patches repository, it contains the previous incremental kernel patches and the Gentoo related kernel patches.

Get the genpatches-misc repository, it contains the scripts that will help during the kernel release:

Now we need the incremental patch for the kernel we want to patch. In the linux-patches folder there are already the incremental patches until kernel-4.7.9, so we need the incremental patches from 4.7.9 to 4.7.10 https://cdn.kernel.org/pub/linux/kernel/v4.x/incr/patch-4.7.9-10.xz

You can get the link from kernel.org.

Now that we have the incremental patch link we download it and verify the gpg key:

The output will look something like this:

After check the patch signature we can move it to the linux-patches folder.

We need to update the 0000_README file and add the patch added in the branch.

Commit the change:

Get the Kernel vanilla source for 4.7.0:

Check the patch can be applied:

Check the kernel can be compiled:

If there is no problem about the previous warning, we can start releasing the kernel.

Let's configure gpdorelease.

Let's release the kernel.

This will:


 * 1) Tag the 4.7 branch as 4.7-11 (immediate commit)
 * 2) Produce genpatches-4.7-11 tarballs
 * 3) Upload tarballs to distfiles-local
 * 4) (Optionally) create and upload website
 * 5) (Optionally) send a release announcement to gentoo-kernel

Let's make gentoo-sources-4.7.10:

We need to increment the  number:

emerge gentoo-sources-4.7.10.ebuild

Select the new kernel:

Build the new kernel:

Install the new kernel:

Commit the Gentoo-sources file.
Gentoo-sources previously made (example):

gentoo-sources-4.7.10.ebuild

How to commit to gentoo git repository:

Gentoo_git_workflow

Acknowledgements
for writing the first draft of this guide.