|
The Linux Wacom Project
|
| Main | News | FAQ | Downloads | Help | Development | TOC | All | Dec 10, 2009 |
Linux Wacom Project HOWTO3.3 - Building wacom.cTo build the wacom.ko kernel module, you need to configure wacom as a kernel module under your kernel source tree first. The kernel sources are required as described on the configuration page. Then, you need to configure the package with --enable-wacom option. Here's how the configuration should generally look:
As shown above, the kernel directory was detected and the wacom.o module will be built. If the kernel option shows "no", you will need to specify the --with-kernel option and the correct directory.
To build the driver, just run make. If everything works properly, you'll see the following from the make:
This part is for those who want to manually build the wacom kernel driver in source tree. If you already followed the steps above, you can move on to next page.
Please backup wacom.c in your kernel tree first. Then copy wacom.c (or wacom_wac.c, wacom_wac.h, wacom_sys.c, and wacom.h if defined) from the related linuxwacom directory to the source tree (if 4 files were copies, you need to add wacom-objs := wacom_sys.o wacom_wac.o to the Makefile under your kernel source input directory) and rebuild the kernel. An example for kernel 2.6.9 is as following: [jej@ayukawa linuxwacom]$ cp /usr/src/linux/drivers/usb/input/wacom.c /usr/src/linux/drivers/usb/input/wacom.c.2.6.9 [jej@ayukawa linuxwacom]$ cp src/2.6.9/wacom.c /usr/src/linux/drivers/usb/input/ [jej@ayukawa linuxwacom]$ cd /usr/src/linux [jej@ayukawa linux]$ make [jej@ayukawa linux]$ su [jej@ayukawa linux]#make install [jej@ayukawa linux]#make modules_install [jej@ayukawa linux]#reboot |