[mythtv-users] clueless about building modules (lirc on Debian)
Lorrin Nelson
lhn-public at the-fam.net
Sat Oct 4 15:33:34 EDT 2003
Hi - I see there's lots of lirc discussion in the archives, but I don't
think this has been covered yet. I'm trying to get lirc going under
Debian Woody (2.4.20-3-k7 kernel). As far as I can tell the way is to
build a kernel module by hand so that's what I'm trying to do. I've got
a Hauppauge WinTV-Radio (401) so I'm trying to build the ic2 lirc
module. I think I might be on totally the wrong path or missing some
crucial first step. :-(
I did apt-get install kernel-source-2.4.20 and now have the source for
my kernel in /usr/src/kernel-source-2.4.20. I symlinked /usr/src/linux
to point there as well.
Then I did apt-get install lirc-modules-source, and the screens there
offered to build the modules. But no luck:
##### Couldn't build LIRC kernel modules #####
make -e -C drivers SUBDIRS="lirc_i2c lirc_dev"
make[1]: Entering directory `/usr/src/modules/lirc/drivers'
Making all in lirc_i2c
make[2]: Entering directory `/usr/src/modules/lirc/drivers/lirc_i2c'
DIR=`pwd`; (cd /usr/src/linux/; make SUBDIRS=$DIR obj-m=lirc_i2c.o modules)
/usr/src/kernel-source-2.4.20/scripts/pathdown.sh: TOPDIR: parameter
null or not set
make[3]: Entering directory `/usr/src/kernel-source-2.4.20'
make[3]: *** No rule to make target `lirc_i2c.o', needed by `modules'.
Stop.
make[3]: Leaving directory `/usr/src/kernel-source-2.4.20'
make[2]: *** [lirc_i2c.o] Error 2
make[2]: Leaving directory `/usr/src/modules/lirc/drivers/lirc_i2c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/modules/lirc/drivers'
make: *** [i2c] Error 2
I tried setting TOPDIR (export TOPDIR=/usr/src/modules/lirc) but that
didn't seem to make much difference:
spiff:/usr/src/modules/lirc# make
make -e -C drivers SUBDIRS="lirc_i2c lirc_dev"
make[1]: Entering directory `/usr/src/modules/lirc/drivers'
Making all in lirc_i2c
make[2]: Entering directory `/usr/src/modules/lirc/drivers/lirc_i2c'
DIR=`pwd`; (cd /usr/src/linux/; make SUBDIRS=$DIR obj-m=lirc_i2c.o modules)
make[3]: Entering directory `/usr/src/kernel-source-2.4.20'
make[3]: *** No rule to make target `lirc_i2c.o', needed by `modules'.
Stop.
make[3]: Leaving directory `/usr/src/kernel-source-2.4.20'
make[2]: *** [lirc_i2c.o] Error 2
make[2]: Leaving directory `/usr/src/modules/lirc/drivers/lirc_i2c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/modules/lirc/drivers'
make: *** [i2c] Error 2
Any help is appreciated!
-Lorrin
More information about the mythtv-users
mailing list