How do I recomile just 1 kernel module. I want to recompile serial/8250.c I tried typing make in the serial directory but that did not do it? Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.centos.org/pipermail/centos/attachments/20050613/c580926e/attachment-0003.html>
Am Mo, den 13.06.2005 schrieb Jerry Geis um 20:56:> How do I recomile just 1 kernel module. I want to recompile > serial/8250.c> Jerrycopy&paste from the Fedora Core 4 release notes: 6.2.2.4. Building Only Kernel Modules An exploded source tree is not required to build a kernel module, such as your own device driver, against the currently in-use kernel. For example, to build the foo.ko module, create the following Makefile in the directory containing the foo.c file: obj-m := foo.o KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) M=$(PWD) modules Issue the make command to build the foo.ko module. Alexander -- Alexander Dalloz | Enger, Germany | GPG pgp.mit.edu 0xB366A773 legal statement: uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.27_FC2smp Serendipity 21:11:17 up 20 days, 19:49, load average: 0.58, 0.56, 0.50 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <lists.centos.org/pipermail/centos/attachments/20050613/81b095da/attachment-0003.sig>
Sir, After looking closely the 8250.c is not a module. It is compiled into the kernel. What is the shortes method to compile that file and rebuild what is needed to get it running. Thanks for your help. Jerry Am Mo, den 13.06.2005 schrieb Jerry Geis um 20:56:>/ How do I recomile just 1 kernel module. I want to recompile/>/ serial/8250.c />/ Jerry/ copy&paste from the Fedora Core 4 release notes: 6.2.2.4. Building Only Kernel Modules An exploded source tree is not required to build a kernel module, such as your own device driver, against the currently in-use kernel. For example, to build the foo.ko module, create the following Makefile in the directory containing the foo.c file: obj-m := foo.o KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) M=$(PWD) modules Issue the make command to build the foo.ko module. Alexander