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

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

 



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

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

/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