Why go to all this bother?
If you compile a kernel or modules regularly then don't do the 'make clean' or
'make mrproper' bits. These just delete the *.o files. If you don't do this,
the next time you compile the kernel or modules, the makefile will see that
some of the *.o files already exist and will skip on to the next stage until
it finds code that hasn't been compiled before. It is only when you are fully
satisfied with your kernel and modules should you do the 'makr clean' step
>===== Original Message From Fergal Daly <fergal at esatclear.ie> =====
>Not sure about the mangling but when I want to compile a single modules, the
>best I've come up with is to recompile as little as possible. I have no idea
>if I'm breaking some cardinal rule here but try this.
>>Find the kernel config file.
>>Go have a look in that file for the symbols that are relevant to the stuff
>you want, the names are fairly obvious. Obviously you only want the ones
>that have =m. Remember these symbols (often just 1 symbol)
>>(after backing up the original)
>>perl -pi -e 's/=m$/=n/' config
>>Now edit the file and change your symbols back to =m and
>>cp config /usr/src/linux/.config
>>make dep
>make clean
>make modules
>>Only one module will actually be built and hopefully gcc will have gotten
>all the same options as it did originally. If not, at least your make
>modules should be quite snappy now, so you can do further messing about a
>bit faster. I'm hoping that the new CML2 yokey and all the stuff they're
>going to do with the make files in 2.4.5 will result in a standard and easy
>way to compile single modules but I'm probably wrong,
>>Fergal
>>On Mon, Jul 09, 2001 at 12:46:28AM +0100, kevin lyda wrote:
>> ok, so i have the kernel source for my upgraded kernel. i want to rebuild
>> just loop.o. this seems impossible. can it be done? make loop.o in
>> drivers/block doesn't bring joy.
>>>> my solution at the moment is to rebuild the entire tree:
>>>> # cp configs/kernel-2.2.17-i586.config .config
>> # (make dep; make clean; make; make modules) > /dev/null 2>&1
>> # nm drivers/block/loop.o | grep exit_files
>> U exit_files
>> # nm /lib/modules/2.2.17-14/block/loop.o | grep exit_files
>> U exit_files_R2c9ad1b8
>>>> the symbols aren't getting mangled. why not? will i have to build a
>> whole new kernel, install it, and then reboot *just* to up max_loops?
>>>> grrrr...
>>>> obviously upgrading to 2.4 will solve my problems. that's later.
>> for the moment i'd just like this to work.
>>>> kevin
>>>> --
>>kevin at suberic.net "linux is a cancer" --steve ballmer
>> fork()'ed on 37058400 "released 25 august 1991, linux is a virgo" --me
>> meatspace place: home linux, not just a star-sign:
>>http://suberic.net/~kevinhttp://www.linux.com/>>>> --
>> Irish Linux Users' Group: ilug at linux.ie>>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
>> List maintainer: listmaster at linux.ie>>--
>>--
>Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
>List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!