or you can use checkinstall: #apt-get install checkinstall you compile the module (make) but do not install it, and then you do: #checkinstall make install this creates a .deb package, you can specify it's headers. >On Saturday 03 December 2005 08:59, Martin Vlk wrote: > I have compiled the kernel module and the extra keys now generate X events > (as shown by xev). So the driver itself works fine. > > How to compile the acerhk module and create deb package > > I assume you have a configured Linux kernel source in the <kernel-source> > directory and you have installed the module-assistant package. > > - Add the following to your /etc/apt/sources.list > deb http://kanotix.com/files/debian/ unstable main contrib non-free > - Install the "acerhk-source" pacage. The source installs > in "/usr/src/acerhk.tar.bz2" > - Unpack the archive somewhere in your home dir. (e.g. <modules-dir>) > - $ export MODULE_LOC=<modules-dir> > - $ cd <kernel-source> > - $ fakeroot make-kpkg modules (This creates a .deb package in the parent > directory of <kernel-source> > - Install the package: $ dpkg -i <newly-created-deb> > - Load the module: $ modprobe acerhk > - You also want to include it in the "/etc/modules" file so it loads > automatically on boot. > > > Now the second part of the problem is how to assign the keyboard events to > some actions. I haven't dne that before - can anyone help? > > Hope this helps. > vlcak
Attachment:
pgp4fvVw4sgqv.pgp
Description: PGP signature