|
i c&p this.
----
3.3. Howto Install Just A Single Module ?
Let us assume that you already did 'make modules' and 'make
modules_install'. And later you did 'make clean' to free up disk
space. And now, you want to change a "C" file in one of the modules
and want to rebuild just that module and copy the module file to
/lib/modules. How do you do it?
You can compile just a single module file (say like foo.o) and install
it. For this simply edit the Makefile and change the SUBDIRS to add
only those directories you are interested.
For an example, if I am interested in installing only fs/autofs
module, then I do the following :
______________________________________________________________________
cd /usr/src/linux
cp Makefile Makefile.my
vi Makefile.my
# And comment out the line having 'SUBDIRS' and add the
# directory you are interested, for example like fs/autofs as below :
#SUBDIRS =kernel drivers mm fs net ipc lib abi crypto
SUBDIRS =fs/autofs
# Save the file Makefile.my and give -
make -f Makefile.my modules
# This will create module autofs.o
# Now, copy the module object file to destination /lib/modules
make -f Makefile.my modules_install
# And this will do 'cp autofs.o /lib/modules/2.4.18-19.8.0/kernel/fs/autofs'
______________________________________________________________________ |
|