LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Matthew Geddes <mgeddes@tellurian.com.au>
  To  : Richard Sharpe <rsharpe@richardsharpe.com>
  Date: 15 Jan 2003 10:29:16 +1030

Re: Black Magic and Kernel recompiles

On Wed, 2003-01-15 at 10:25, Richard Sharpe wrote:

> I think I got this to work once, and I think I posted the secret sauce to 
> LinuxSA at some stage. I think it is Makefile cruft left around.
> 
> You have to move the .config file out of the way, then do a 'make 
> reallyclean' or something like that, and then move the .config file back, 
> and then you are right.
> 
> Red Hat seem to have got this wrong for a long time.

Couldn't find anything on linuxsa, but found this post of yours to a
redhat list:

https://listman.redhat.com/pipermail/redhat-install-list/2001-June/031253.html

Just to be sure, I tried an rpm -e kernel-source then removed the
/usr/src/linux-* directory and all files beneath it (things like .config
and .depend, etc). Then:

 * rpm -ivh kernel-source-[same-version-and-build].rpm.
 * make clean
 * make mrproper (as per the above post)
 * make bzImage (as per RedHat's destructions linked in my previous
post)

The last step failed with:
make -C kernel fastdep
make[2]: Entering directory `/usr/src/linux-2.4.18-18.7.x/kernel'
make[2]: *** No rule to make target
`/usr/src/linux-2.4.18-18.7.x/include/linux/autoconf.h', needed by
`/usr/src/linux-2.4.18-18.7.x/include/linux/modules/signal.ver'.  Stop.

Then:
 * make dep

which failed with the same error. But:

 * make oldconfig
 * make dep

didn't ask me any questions (I was using one of the
RedHat-supplied.configs for that kernel tree) and the make dep finished
this time. At the moment it's doing a make bzImage and I noticed that
smp.c compiled this time (as opposed to last time, when it complained
about syntax errors in that same file).

Well, the bzImage just finished and I'm building the modules. So it
seems that the way to do this is:

rpm -ivh kernel-source*.rpm
make mrproper
cp configs/whatever .config
make oldconfig dep bzImage modules modules_install

I swear, if Debian released official CDs more often.....  :-)

I'm going to assume that the modules are going to compile and thank you
all for your suggestions.
Matt

-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.openprojects.net
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page