- From: Alberto LUSIANI <Alberto.Lusiani_at_pi.infn.it>
- Date: Sat, 27 Mar 2004 11:24:27 +0100
Hello, I have succesfully compiled Comedi for Fedora Core 1 I'll try to summarize my experience in the following. First, I got comedi from CVS on 22 March 2004, and I refer to this release as: 0.7.68.cvs.22mar04. If the kernel-source RPM package matching the current kernel is present, and has been configured, then just one kludge is needed to get Comedi compiled, on include/linux/interrupt.h: --- comedi/include/linux/interrupt.h.old 2003-12-19 22:47:17.000000000 +0 000 +++ comedi/include/linux/interrupt.h 2004-03-20 11:21:27.000000000 +0000 _at__at_ -21,7 +21,7 _at__at_ #include <linux/version.h> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 23) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21) typedef void irqreturn_t; #define IRQ_NONE #define IRQ_HANDLED This is probably related to some back-imported code from 2.4.23 to 2.4.22 for this particular kernel. In the default configuration, Comedi will compile kernel modules matching the "custom" kernel that you would compile from kernel-source. However it might be more practical to compile modules for the running kernel (matching kernel-source). So I exploited the UTS_RELEASE_OVERRIDE define in Comedi include/linux/version.h to obtain that. In the end I got a .spec file which by default compiles modules for the running kernel, with the possibility to ask for a different one (for instance the "custom" kernel). I added some scripts to get the comedi devices, /etc/modules.cons and few other details matching RedHat/Fedora style. The .src.rpm produces a .rpm named kernel-module-<version>-<release>.<kernel-release>, following the style of the Alsa project kernel module for RedHat. This .spec file should in principle be able to compile Comedi also for other RedHat / Fedora systems, but your mileage may vary... In the hope that this mailing list handles MIME, I include the nosrc.rpm (you have to combine it with a .tar.bz2 of the Comedi release from CVS).
Regards, -- Alberto
Attachments
- application/x-rpm attachment: Comedi .nosrc.rpm
Received on 2004-03-27Z10:24:27