Re: compiling kernel module form multiple C source- Howto

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

 



On Thu, May 24, 2007 at 02:27:39PM +0200, peto wrote:
> Dear conference,
>
> I am to compile multiple source as single kernel module
> and i am using makefile starting with e.g.
>
> obj-m := module.o
> module-objs :=  peter.o module.o
>
> Makefile creates single module,but i tales MODPOST warnigs for unknown just 
> from peter.o  where no init_module  and cleanup_module functions are. It 
> contains just one function to work as RTAI timer handler.
> Module loads but does nothing.
>...

There are two different things named "module.o" in your example, and as 
a result peter.c is not included in your module.

Rename module.c to something like module_main.c and adapt the Makefile 
accordingly and it should work.

> Yours faithfully
>
> Peter

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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