summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Manual pages: Mention the current maintainerJean Delvare2020-09-101-1/+2
| | | | | | | | Add the current maintainer to the mailing list as the contact points for bug reports. This ensure that the reports will be read by the right person. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* libi2c: Add a manual page to document the APIJean Delvare2020-09-082-2/+145
| | | | | | It is good practice for a library to come with a complete API description. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* allow to preset custom CFLAGS and LDFLAGSWolfram Sang2020-08-101-1/+1
| | | | | | | | Sometimes I need to add some flags (like -static for the linker), so allow this for all CFLAGS and LDFLAGS used in this project. Signed-off-by: Wolfram Sang <wsa@kernel.org> Acked-by: Jean Delvare <jdelvare@suse.de>
* Set version to 4.1v4.1Jean Delvare2018-11-301-1/+1
|
* Make STRIP overridableJean Delvare2018-11-091-1/+1
| | | | | | | | | Allow the user select a different strip tool for the build (same as done with the CC and AR variables). Contributed by Per Olav Kroka. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* libi2c: Mention the correct license in source filesJean Delvare2018-08-031-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The libi2c library is released under the LGPL, not GPL, as explained in the README file and documented in lib/Module.mk. Thanks to Aurelien Jarno for pointing out the inconsistency. A little bit of history: The code started its life two decades ago as part of the lm-sensors project, which was released as a whole under the GPL originally, including the library part (libsensors). In 2007, I decided to split the i2c tools, which are not specific to sensor devices, to a separate package. In 2009, as I was working on lm-sensors v3, I contacted all the original authors to get their approval to release the upcoming and all future versions of libsensors as LGPL instead, to allow wider adoption. The proposal was accepted by all original authors. In 2012, I decided to turn the inlined i2c_smbus_* helper functions into a proper library, with the intent to release it under the LGPL, as is the common practice for libraries. As the authors of this code is a subset of the authors of libsensors, I assumed their agreement for libsensors could be extended to libi2c as well. This is the reason why LGPL is mentioned in README and lib/Module.mk. Unfortunately, when working on the library code itself, I forgot to update the comments in the source files. Let's fix them now. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* lib/Module.mk: Don't install dynamic library when disabledBaruch Siach2018-01-091-0/+2
| | | | | | | | | | | | | | Do not attempt to install the dynamic library when build of that library is disabled. Fixes the following installation error: install -m 755 lib/libi2c.so.0.1.0 .../target/usr/lib install: cannot stat 'lib/libi2c.so.0.1.0': No such file or directory lib/Module.mk:90: recipe for target 'install-lib' failed Cc: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Jean Delvare <jdelvare@suse.de> Fixes: 9906b2ecb6ae ("Makefile: Add flag to disable dynamic library")
* lib/Module.mk: Fix LIB_LINKS dependencyAngelo Compagnucci2017-12-141-2/+1
| | | | | | | | | LIB_LINKS should be added as a dependency only when BUILD_DYNAMIC_LIB is enabled. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Jean Delvare <jdelvare@suse.de> Fixes: 9906b2ecb6ae ("Makefile: Add flag to disable dynamic library"
* tools/Module.mk: Add missing dependenciesJean Delvare2017-12-141-0/+7
| | | | | | | | | Better build the library before building the tools which link against it, otherwise parallel builds could run into a race and break. Signed-off-by: Jean Delvare <jdelvare@suse.de> Tested-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: Angelo Compagnucci <angelo@amarulasolutions.com>
* lib/Module.mk: Drop unused variable LIB_OBJECTSJean Delvare2017-12-061-2/+0
|
* Makefile: Add flag to disable dynamic libraryAngelo Compagnucci2017-12-061-1/+5
| | | | | | | | | In such cases where you need to disable entirely the dynamic library compilation, now you can use the BUILD_DYNAMIC_LIB=0 flag. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* lib/Module.mk: Add missing dependenciesJean Delvare2017-12-061-2/+2
| | | | | The lib symlinks lacked a dependency to the actual library file, so parallel builds could run into a race and break.
* Update my e-mail address and copyright years.Jean Delvare2014-02-192-4/+4
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6224 7894878c-1315-0410-8ee3-d5d059ff63e0
* Fix build error (NULL undefined) caused by missing include fileGuenter Roeck2013-03-021-0/+1
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6124 7894878c-1315-0410-8ee3-d5d059ff63e0
* libi2c: Use I2C_SMBUS_BLOCK_MAX instead of hard-coding 32Jean Delvare2012-07-101-8/+8
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6059 7894878c-1315-0410-8ee3-d5d059ff63e0
* libi2c: Properly propagate real error codes on read errorsJean Delvare2012-07-101-43/+63
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6058 7894878c-1315-0410-8ee3-d5d059ff63e0
* New library for I2C device access under Linux. As a first step, theJean Delvare2012-05-213-0/+323
library will host the i2c_smbus_*() inline functions which were previously in the user-space flavor of <linux/i2c-dev.h>. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6054 7894878c-1315-0410-8ee3-d5d059ff63e0