Article 512BE Kernel driver with 2 files - ko contains binary of one file only

Kernel driver with 2 files - ko contains binary of one file only

by
zvivered
from LinuxQuestions.org on (#512BE)
Hello,

Attached Makefile and source code for a simple kernel device driver.
With this Makefile, if there a syntax error in file1.c, it's ignored.

file1.o, file2.o, file1.ko are created but it's a fake.

The nmoutput of file1.o is identical to that of file2.o

Can you please help understand what is wrong in my Makefile ?

Thank you,
Zvika
Attached Files
txt.giffile1.txt (1.1 KB)
txt.giffile2.txt (891 Bytes)
txt.gifMakefile.txt (213 Bytes)
latest?d=yIl2AUoC8zA latest?i=x3l53xvufk8:V3BiHWj_2to:F7zBnMy latest?i=x3l53xvufk8:V3BiHWj_2to:V_sGLiP latest?d=qj6IDK7rITs latest?i=x3l53xvufk8:V3BiHWj_2to:gIN9vFwx3l53xvufk8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments