rebuilding kernel for the first time

Ben Pfaff pfaffben@msu.edu
21 Nov 2000 23:23:16 -0500


"Leonard G. Warden IV" <lgw4@sealdog.org> writes:

> Let me correct a misconception: the kgcc compiler shipped with Red Hat 7
> builds wonderfully functional 2.2.x kernels. It appears you have installed
> this package, so I doubt that compiler issues are the source of your
> problem. I suspect something is wrong in the kernel configuration process.

Since we're talking about kernel 2.2.16, the kernel builder will
not autodetect the presence of kgcc.  Thus, it is probably
necessary to edit the top-level kernel Makefile.  Change the line
that reads
	CC      =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)
to read
	CC      =$(CROSS_COMPILE)kgcc -D__KERNEL__ -I$(HPATH)
i.e., add a `k'.