Bug#304648: zaptel-source: Fails to enable RTAI support

Tibor Dekany Tibor Dekany <debbugrpt.20.psionic@spamgourmet.com>, 304648@bugs.debian.org
Thu, 14 Apr 2005 15:30:47 +0200


Package: zaptel-source
Version: 1:1.0.7-3
Severity: normal

The zaphfc module can make use of RTAI (Real Time Application
Interface). RTAI is available as debian package containing the source
code for the kernel modules. Those include files are located in
/usr/lib/realtime, and not in /usr/realtime.

To be able to use RTAI with zaphfc, the
/usr/src/modules/zaptel/zaphfc/Makefile has to be adapted according to
the diff below:

--- Makefile    2005-04-03 20:49:19.000000000 +0200
+++ /usr/src/modules/zaptel/zaphfc/Makefile     2005-04-14
14:47:28.000000000 +0200
@@ -12,7 +12,7 @@
 else
  ZAP="-I$(ZAPTELDIR)"
   endif
   -RTAI = $(shell [ -f /usr/realtime/include/rtai.h ] && echo
   "-DRTAITIMING -I/usr/realtime/include")
   +RTAI = $(shell [ -f /usr/lib/realtime/include/rtai.h ] && echo
   "-DRTAITIMING -I/usr/lib/realtime/include")

    HOSTCC=gcc

After this change, when you rebuild the zaptel modules, RTAI support
will be included, if it is installed on the system. On my system, this
reduces the Interrupt load on the hfc card by a factor of 4 (for total
2000 interrupts per second instead of 9000).

Thanks in advance,
greetings,
Tibor Dekany

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-big-rtai
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages zaptel-source depends on:
ii  bzip2                         1.0.2-5    high-quality block-sorting file co
ii  debhelper                     4.2.32     helper programs for debian/rules
ii  module-assistant              0.8.2      tool to make module package creati

-- no debconf information