adding a driver to kernel source tree

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

 



Hi,
I want to add a driver to kernel source tree.
I modified the config.in and the menu items are being shown in make menuconfig.
After menuconfig , my .config contains the following entry
CONFIG_MYUSB=y

My make file follows

M_OBJS := usb.o
obj-$(CONFIG_MYUSB) += usb.o
export-objs := usb.o
include $(TOPDIR)/Rules.make

on make bzImage,
<snip>
But no file is being compiled in. If i give
#gcc -DMODULE -D__KERNEL__ usb.c -c
it gets compiled.

Any idea?
Thanks and regards,
om.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux