Compiling the Module

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

 



Hi,

I have a standalone module compiled in the user directory(/home/xxx). I need
to install this in /lib/modules/<ker-ver>/kernel/net/ipv4/<mymod>/. If I use
the following makefile it installs in /lib/modules/<ker-ver>/extra. Is there
anyway  I can install the module in the specified directory?


-----------------------------------------------------------------------
My current makefile.

KDIR:=/lib/modules/$(shell uname -r)/build
install:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install


Thanks,
Sanjay Hegde


--
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