[CentOS] CentOS6: Building a modified kernel rpm

Akemi Yagi
Fri, 25 Mar 2016 17:52:51 -0000

On Fri, Mar 25, 2016 at 9:57 AM, Patrick Begou <
Patrick.Begou at legi.grenoble-inp.fr> wrote:

> I'm very confused on the right step to use to setup a modified kernel
in
> centOS6.
>
> As a simple user, I've downloaded the latests sources (I'm runing
an old
> kernel version) :
>
> rpm -i
>
http://vault.centos.org/6.7/updates/Source/SPackages/kernel-2.6.32-573.22.1.el6.src.rpm
>
> in the spec file ~/rpmbuild/SPECS/kernel.spec I've set:
> %define buildid .numa
>
> Now I want to set *CONFIG_NUMA_EMU=y*
> before runing:
> rpmbuild -bb --without xen --without debug --without debuginfo
> --target=x86_64 ./SPECS/kernel.spec
>
> But where shoud I set this CONFIG_NUMA_EMU option ?
> I've tested several config files where this options was specified
(using
> grep as a last solution)  but each build reset my choice and it is not
> available in the final kernel.
>
> And google is a little bit confusing for me with many and many diverging
> informations.
>
> Thank to kernel gourous for their advices.
>
> Patrick
>

I recommend you follows the instructions in this CentOS wiki article:

https://wiki.centos.org/HowTos/Custom_Kernel

If you encounter any issue, please let us know here.

Akemi