Menu

Drivers

Alec Leamas

Adding and removing drivers (0.9.2+)

First and foremost

You should have configured your sources. If you are using a distribution tarball, just run ./configure. If you are using the git sources do:

./autogen.sh
./configure


Removing

If you want to remove a driver (e. g., build problems) just remove the plugins/*.c file.
if the driver is mentioned in plugins/Makefile.am you need to adjust this file.

Also remove the corresponding file in configs/ and related documentation in
doc/html-source/*_driver.html.

If the plugin is mentioned in plugins/Makefile.am you need to patch this file.

Add a driver.

A driver consists of

  • A source file in plugins/ - see the driver API manual and existing code.
  • A configuration file in configs - see configs/README for format
  • Possibly a documentation file in doc/html-source - see existing
    doc/html-source/*driver.html files. The _driver.html suffix is required.

When creating a driver for a specific remote,you should also create the lircd.conf for
this remote. This should should comply to the checklist. A lirccode driver should always
submit at least one lircd.conf.

Besides running tests with your hardware, also check that the new driver can
be installed using lirc-setup i. e., test also your configs/ file.
If you need specific build system support (e. g., conditional building and/or linker flags)
you need to patch plugins/Makefile.am. In most cases this is not required.

Rebuilding

After adding or removing a driver and possibly patching plugins/Makefile.am rebuild
using

$ cd plugins
$ ./make-pluginlist.sh > pluginlist.am
$ make



Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.