documentation "out there" (was Re: kernel-source vs. kernel-sourcecode (please revert))
Joe Christy
joe at eshu.net
Tue Jun 15 21:47:49 UTC 2004
Vis-a-vis Arjen's note of 06/15/2004 02:35 PM:
> On Tue, Jun 15, 2004 at 02:33:57PM -0700, Joe Christy wrote:
>
>>Look in:
>> /usr/share/doc/kernel-doc-2.6.6/kbuild/modules.txt
>>
>>Now, what I'd like to know, having correctly modified my module's
>>Makefile and painlessly built it for my newly yum updated kernel RPM, is:
>>What is the correct way to install an external module in such a way as
>>to regenerate all the neccessary modules.* in /lib/modules/`uname -r`.
>>I've tried googling but keep getting instructions on building a whole
>>custom kernel.
>
>
> make -C /lib/modules/`uname -r`/build SUBDIRS=$PWD modules_install
> afaik....
>
Being a conservative soul, I tried that, passing the -n flag to make:
[root at woof ltmodem-2.6-alk-4]# make -n -C /lib/modules/`uname
-r`/build SUBDIRS=$(PWD) modules_install
-bash: PWD: command not found
make: Entering directory `/lib/modules/2.6.6-1.435/build'
if [ -z "`/sbin/depmod -V | grep module-init-tools`" ]; then \
echo "Warning: you may need to install module-init-tools"; \
echo "See
http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt";\
sleep 1; \
fi
/==>rm -rf /lib/modules/2.6.6-1.435/kernel
|==>rm -f /lib/modules/2.6.6-1.435/build
| mkdir -p /lib/modules/2.6.6-1.435/kernel
|==>ln -s /lib/modules/2.6.6-1.435/build /lib/modules/2.6.6-1.435/build
| make -rR -f /lib/modules/2.6.6-1.435/build/scripts/Makefile.modinst
| :
| if [ -r System.map ]; then /sbin/depmod -ae -F System.map
2.6.6-1.435; fi
| make: Leaving directory `/lib/modules/2.6.6-1.435/build'
|
|===== but these three lines scared me off.
In particular, creating that circular symlink must be wrong, which gives
me pause wrt the rm -rf /lib/modules/2.6.6-1.435/kernel.
More information about the fedora-devel-list
mailing list