Driver porting: compiling external modules
Driver porting: compiling external modules
Posted Sep 14, 2005 23:45 UTC (Wed) by mraviraj (guest, #32463)In reply to: Driver porting: compiling external modules by rfunk
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.
ifeq ($(KERNELRELEASE),)
obj-m := foo.o
else
KDIR := /linux/kernel/src/v2.4/linux-2.4.31
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
endif
foo-objs := foo1.o foo2.o
Can someone please share their experience in compiling the same source code for 2.4 and 2.6 ?
thanks ..
Raviraj
