Re: problem with make file

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

 



> obj-m :=combine.o
> module-objs :=hello1.o hello2.o
> obj-m :=hello1.o hello2.o

i think that you should do something like:

obj-m :=combine.o
combine-objs :=hello1.o hello2.o
obj-m +=hello1.o hello2.o

But it's not enough, you should al least omit 
module_exit() and module_init() of one module... 
and did you think what can happens if one load all three modules? 

So, in short: why do you need another module that do the same thing of 
other two?

Bye.
-- 
-gaspa-
-----------------------------------------------
--------- Powered by Debian GNU/Linux ---------
------ HomePage: iogaspa.altervista.org -------
-Il lunedi'dell'arrampicatore: www.lunedi.org -

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