Hi, I have got sample linux driver written in C.
I got also some assembly code, compiled into .o file (using as compiler).
In my Makefile I got:
PHP Code:
obj-m += someDriver.o
someDriver-objs := CFile1.o CFile2.o ASMFile.o
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
Unfortunatelly I cannot import functions from ASM file to C files.
'make' says, that there is no file called: .ASMFile.o.cmd (that is true, by the way:]).
C files are normally compiled by instructions in Makefile and have matching .o.cmd files.
So do you know how to successfully link (add) ASM files into Linux Driver?
---------- Post updated at 10:36 AM ---------- Previous update was at 06:59 AM ----------
Problem solved:
it is enough to specify assembler filename in line (do not compile it on side):
PHP Code:
someDriver-objs := CFile1.o CFile2.o ASMFile.o
and name that file 'ASMFile.S' - the point is to name with good extension that is big S.
Hope to help anybody.