X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=HACKING;h=a5aa8d6654bd130be98df0ad7bb29901fdd01e4a;hb=e35ebc6aa3b3230d332f5aa217e1da978bb1ec48;hp=2c73e3297e40d48c4a82b903cb709a942c62e289;hpb=8626feaeb57aa50d68293f1706593fa8269a3b2e;p=libsigrok.git diff --git a/HACKING b/HACKING index 2c73e329..a5aa8d66 100644 --- a/HACKING +++ b/HACKING @@ -5,8 +5,9 @@ HACKING Coding style ------------ -This project is programmed using the Linux kernel coding style, see -http://lxr.linux.no/linux/Documentation/CodingStyle for details. +This project is programmed using the Linux kernel coding style: + + https://www.kernel.org/doc/html/latest/process/coding-style.html Please use the same style for any code contributions, thanks! @@ -60,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 'new-driver' script (see above) does for you: - - Makefile.am: Add HW_TONDAJ_SL_814 and add to libsigrok_la_SOURCES. - - configure.ac: Add a DRIVER() and DRIVER2() call. + - Makefile.am: Add to src_libdrivers_la_SOURCES under the HW_TONDAJ_SL_814 + condition. + - configure.ac: Add an SR_DRIVER() call. - 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.