aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2017-12-31 15:25:45 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-31 17:13:30 +0100
commitf7bf37b65245059232a3e6c6c2ad37aab9c6962d (patch)
tree69651faea14b0aab6521189f5da07f89335598b4
parent9aaec9767663ff111b8efa4f5968277d58bfcee9 (diff)
downloadbuildroot-f7bf37b65245059232a3e6c6c2ad37aab9c6962d.tar.gz
buildroot-f7bf37b65245059232a3e6c6c2ad37aab9c6962d.tar.bz2
i2c-tools: fix missing runtime library
When building with dynamic library support, i2c-tools utilities are linked against the libi2c.so library. Current i2c-tools install commands don't take this into account, which leads to the following run-time error: eeprog: error while loading shared libraries: libi2c.so.0: cannot open shared object file: No such file or directory Use the native install target to fix that. Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com> Cc: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/i2c-tools/i2c-tools.mk7
1 files changed, 2 insertions, 5 deletions
diff --git a/package/i2c-tools/i2c-tools.mk b/package/i2c-tools/i2c-tools.mk
index 0f71fd4fb5..9ddaa72786 100644
--- a/package/i2c-tools/i2c-tools.mk
+++ b/package/i2c-tools/i2c-tools.mk
@@ -61,11 +61,8 @@ define I2C_TOOLS_BUILD_CMDS
endef
define I2C_TOOLS_INSTALL_TARGET_CMDS
- for i in i2cdump i2cget i2cset i2cdetect i2ctransfer; \
- do \
- $(INSTALL) -m 755 -D $(@D)/tools/$$i $(TARGET_DIR)/usr/sbin/$$i; \
- done
- $(INSTALL) -m 755 -D $(@D)/eeprog/eeprog $(TARGET_DIR)/usr/bin/eeprog;
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) $(I2C_TOOLS_MAKE_OPTS) \
+ DESTDIR="$(TARGET_DIR)" prefix=/usr -C $(@D) install
$(I2C_TOOLS_INSTALL_PYSMBUS)
endef