db9_gpio_rpi is a driver (Linux kernel module) for DB9 joysticks and gamepads connected to Raspberry Pi's GPIO. See wikipage for further details.
- Install kernel headers
- Copy db9_gpio_rpi-<VERSION> folder to /usr/src/
- dkms add db9_gpio_rpi/<VERSION>
- dkms build db9_gpio_rpi/<VERSION>
- dkms mkdeb db9_gpio_rpi/<VERSION> --source-only