- From: <comedi_at_scil.sinp.msu.ru>
- Date: Mon, 31 May 2004 15:30:50 +0400 (MSD)
On Mon, 31 May 2004 comedi_at_scil.sinp.msu.ru wrote: > Are there plans to adopt the comedi build system to the new kbuild (2.6.6 > and over)? > It is possible to compile drivers for 2.6.6, but loading is impossible: > Invalid module format for example, whole Makefile in the comedi/comedi directory looks like: # (without subdirs) # # top_srcdir=/misc3/src/AMCC/comedi EXTRA_CFLAGS := -DHAVE_CONFIG_H -I. -I$(top_srcdir) -I$(top_srcdir)/include/ LINUX_KERNELRELEASE = 2.6.6 ifneq ($(KERNELRELEASE),) obj-m := comedi.o comedi-objs := comedi_fops.o proc.o range.o drivers.o comedi_ksyms.o else KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules endif The Makefile produces legal module comedi.ko, that is loaded without errors. I do not know (yet) how to compile (in these case) with inclusion of native comedi headers before native kernel ones. Just making all required include with "../include/linux...", not <linux/...> in c sources for now. And, also, I do not know (yet), how to incorporate in an accurate manner new kbuild into the old build system. Any ideas? Sorry, maybe offtopic?
Received on 2004-05-31Z10:30:50