Re: Problem with module spanning from multiple files

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

 



On Wed, 2012-07-18 at 11:27 +0200, Philipp Ittershagen wrote:
> On Wed, Jul 18, 2012 at 10:40 AM, aleksey <lexa@xxxxxxxxx> wrote:
> > obj-m = test.o
> > test-objs = test_sub.o
> > all:
> >                 $(MAKE) -C $(KDIR) M=$(shell pwd) modules
> >
> >
> > But the problem is stay. i don't receive any message on module load.
> 
> Apparently, the problem is the name of your obj-m target and the name
> of the other object which should be build. This worked for me:
> 
> 
> obj-m += mytest.o
> 
> mytest-objs += test.o test_sub.o
> 
> 
> Your kernel module will then be called mytest.ko and consists of
> test.o and test_sub.o
> 

Thank you. your advice helped me. I will read documentation more
carefully, i promise.

> Greetings,
> 
>   Philipp



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[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