ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] How to add loadable kernel modules


From: kshen
Subject: [Ltib] How to add loadable kernel modules
Date: Mon, 31 Aug 2009 10:42:11 -0700
User-agent: Microsoft-Entourage/12.20.0.090605

Hi,
I’m trying to add a loadable kernel module.

I put the device driver under linux/drivers/my_drivers/my_driver_1. I changed the Kconfig in linux/drivers and linux/drivers/my_drivers to add this module to the config menu. I wrote the Makefile in linux/drivers/my_drivers/my_driver_1 as

obj-$(CONFIG_MY_DRIVER_1)   += my_driver_1.o
my_driver_1-objs := mydriverfile.o

I also enabled the Loadable Kernel Modules option in menuconfig.

However, after compile, I got the my_driver_1.o and mydriverfile.o files, but not the my_driver_1.ko file.

What did I do wrong?

Thanks a lot.

Ke

reply via email to

[Prev in Thread] Current Thread [Next in Thread]