[CentOS] Building a kernel without kabichk

Tue Apr 14 01:23:43 UTC 2009
Kwan Lowe <kwan.lowe at gmail.com>

On Mon, Apr 13, 2009 at 6:53 PM, Terry Hull <tah at nrg-inc.com> wrote:
> I’m trying to build a 2.6.18-128.1.6.el5 kernel without kabichk.  I have
> downloaded the sources, installed the compiler, etc and ran the following
> command
>
> rpmbuild  -bb --target=`uname -m`  --without kabichk --with baseonly
> --without debug \
>     --without debuginfo kernel-2.6.spec.
>
> I had modified the .SPEC file according to the WIKI page
> http://wiki.centos.org/HowTos/Custom_Kernel

For the most part, the build instructions on the link work for me. The
only changes I do is to install rpmdevtools first, then run
rpmdev-setuptree to create the rpmbuild directories and .rpmmacros
file. The x86_64 also had a requirement for the unifdef package.

> I have NOT installed any patches that will break KABI, but I am wanting to
> patch the kernel for SCST, and that will do it.  Currently, I’m just trying
> to get the beast to build.  I have been successful getting this to work on
> older versions like 2.6.18-92.1.22, but I have not had success with
> –128.1.6.  l. I have not worried about build errors at this point, because
> I’m hoping someone can say, “Just do this, and all will be well.”
>
> I am relatively new to CentOS / RedHat, but I do have a significant amount
> of Linux experience building kernels.
>
> I am now trying to see if I can get the kernel to build with kabi in place.
>
>
> Any pointers would be greatly appreciated.  TIA.

Any errors?