Hello,
I have the following make file in Fedora 11, X86_64, 2.6.29 kernel:
Code:
ifneq ($(KERNELRELEASE),)
obj-m := Driver_V.o
module-objs :=Driver_V.o
else
KDIR := /usr/src/kernels/$(shell uname -r)/
PWD :=$(shell pwd)
default:
$ make -C $(KDIR) M=$(PWD) modules
endif
clean:
$ rm *.o *.ko Module.symvers modules.order Module.markers *.mod.c
$ rm -r .tmp*
$ rm .*.cmd
Essentially I have a Driver_V.c file and an exitH.s file (asm)
I want to be able to call the routines defined in exitH.s from Driver_V.c and vice-versa. I tried to add "exitH.o" to the obj-m line and the module-objs line. Neither work. So I guess I have to define source files for the driver. Can someone tell me how to do this?
I am using the following line to compile the .s file to .o in the command line. I dont know what its equivalent should be in the driver makefile
thanks for the help
RS