[CentOS] recompiling kernel results in error: .../linux-2.6.18.i686/arch//Makefile: No such file or directory

Thu May 24 18:37:10 UTC 2007
Akemi Yagi <amyagi at gmail.com>

On 5/24/07, dcw <dwoody1 at charter.net> wrote:
> >
> > (1) prepare .spec by removing lines from %prep
> > (2) rpmbuild -bp kernel-2.6.spec
> > (3) go to BUILD  (where .config is)
> > (4) make xconfig
> > (5) add # i386 to .config as the first line
> > (6) copy this .config back to SOURCES  (using the original name xxx.config)
> > (7) rpmbuild -ba kernel-2.6.spec
> >
> > Or, instead of steps (5) to (7), just run:
> I did 5 and 6 anyway, assuming that in the worst case they were not needed and
> would do no harm. I then did 'rpmbuild -bc ...' as below.
>
> It was working until gpg had a segfault. From some of the emails I have been
> reading this is a known problem that has not been fixed yet.
>
> Other emails I have read indicated that signmodule should be set to 0.
> What is the down side risk of doing this?

All I can tell you is that 'signmodules' is set to 0 in my spec file.
I did not change it, so that must have been CentOS's default (?).

By the way, Johnny Hughes has kindly checked the above procedure and
said, "that's what I do."  This is a big assurance.  I agree that your
goal is almost there.

Isn't Linux fantastic?  Imagine trying this in Windows...

Akemi