Re: Re: [Fwd: NEWBIE!: What is wrong with this Makefile?]

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

 



Yes, I tried all the suggestions and looked at various
other Makefiles too. Unfortunatly, most of the modules
use single .c files. 

My Makefile is still the same as the one I originally
posted.

/kmk

kmk wrote:
> obj-m should be pointing to a valid obj file according
> usr/src/linux/Documentation/kbuild/modules.txt. 

Someone else feel free to correct me if I am wrong:

1) I looked in the modules.txt file that you point to above and nowhere 
does it state what you state above.
2) obj-m should actually point to the name of the module you are trying 
to build as far as I know.

> 
> This Makefile I have generates sillymod.ko and sillymod_test.ko.
> Thats is wrong.

3) What does your makefile look like now?
4) Did you actually try what I suggested below?

> 
> /kmk
> kmk wrote:
> 
>>I made that change and ran into two issues:
>>1. I get circular dependency error for sillymod.o
>>2. I still get sillymod: module license 'unspecified' taints kernel msg. And, printk did not work.
>>
>>/kmk
> 
> 
> First, please don't top-post. Second, change the name of the module to
> not be the name of one of the source files:
> 
> obj-m := yourmodname.o
> yourmodname-objs := sillymod_test.o sillymod.o
> 
> That should fix the circular dependency and maybe fix the original problem?
> 
> <snip>
> 


-- 
    kr


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