Re: compiling kernel module form multiple C source- Howto

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

 



Dňa Št 24. Máj 2007 14:56 Adrian Bunk napísal:
> > obj-m := module.o
> > module-objs :=  peter.o module.o
>
> There are two different things named "module.o" in your example, and as
> a result peter.c is not included in your module.

as i saw this  It can be helpfull for me to use
obj :=peter.o
 obj-m := module.o
module-objs +=  peter.o

but I am not sure. 

or

obj-m :=peter.o
obj-m := module.o

but for this i need to do some changes in code becuase modprobe module
takes 2 problems

Can not load peter.ko undefined symbol end
Can not load module.ko undefined symbol function

where for end

in module.c 
int end;

in peter.c
extern int end;

and for function

in peter.c 
void function (int);

in module.c(included from peteo.h)
extern void function (int);

Thank you.

Yours fiatfully

Peter





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