doc: update manual driver addition in the HACKING document
Build support has changed to use linker sections for driver registration. Update the subsection in the HACKING document which discusses the manual addition of device drivers, to match what the new-driver script does for driver authors.
This commit is contained in:
parent
108d2ec2c2
commit
18037e79f1
5
HACKING
5
HACKING
|
@ -61,8 +61,9 @@ This is a rough overview of what you need to do in order to add a new driver
|
||||||
(using the Tondaj SL-814 device as example). It's basically what the
|
(using the Tondaj SL-814 device as example). It's basically what the
|
||||||
'new-driver' script (see above) does for you:
|
'new-driver' script (see above) does for you:
|
||||||
|
|
||||||
- Makefile.am: Add HW_TONDAJ_SL_814 and add to libsigrok_la_SOURCES.
|
- Makefile.am: Add to src_libdrivers_la_SOURCES under the HW_TONDAJ_SL_814
|
||||||
- configure.ac: Add a DRIVER() and DRIVER2() call.
|
condition.
|
||||||
|
- configure.ac: Add an SR_DRIVER() call.
|
||||||
- src/drivers.c: Add a tondaj_sl_814_driver_info entry in two places.
|
- src/drivers.c: Add a tondaj_sl_814_driver_info entry in two places.
|
||||||
- src/hardware/tondaj-sl-814/ directory: Add api.c, protocol.c, protocol.h.
|
- src/hardware/tondaj-sl-814/ directory: Add api.c, protocol.c, protocol.h.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue