gamecon_gpio_rpi is a Linux kernel module which allows interfacing various retro gamepads with Raspberry Pi's GPIO. See wikipage for further details.
- Install kernel headers
- Copy gamecon_gpio_rpi-<VERSION> folder to /usr/src/
- dkms add gamecon_gpio_rpi/<VERSION>
- dkms build gamecon_gpio_rpi/<VERSION>
- dkms mkdeb gamecon_gpio_rpi/<VERSION> --source-only