Driver porting: compiling external modules
Posted Sep 14, 2005 23:45 UTC (Wed) by mraviraj
In reply to: Driver porting: compiling external modules
Parent article: Driver porting: compiling external modules
We have been using linux 2.4 for the development and recently started supporting 2.6.
I need to port our existing makefiles to work with 2.4 and 2.6.
while i am trying to use following syntax for 2.4, it is just doing 'make clean' job in linux kernel directory.
obj-m := foo.o
KDIR := /linux/kernel/src/v2.4/linux-2.4.31
PWD := $(shell pwd)
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
foo-objs := foo1.o foo2.o
Can someone please share their experience in compiling the same source code for 2.4 and 2.6 ?
to post comments)