* [Buildroot] [PATCH] i2c-tools: fix missing runtime library
@ 2017-12-31 13:25 Baruch Siach
2017-12-31 16:14 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2017-12-31 13:25 UTC (permalink / raw)
To: buildroot
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>
---
I think we can also get rid of I2C_TOOLS_INSTALL_PYSMBUS now. But let's
fix the bug first.
---
package/i2c-tools/i2c-tools.mk | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/package/i2c-tools/i2c-tools.mk b/package/i2c-tools/i2c-tools.mk
index 0f71fd4fb581..9ddaa7278673 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
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] i2c-tools: fix missing runtime library
2017-12-31 13:25 [Buildroot] [PATCH] i2c-tools: fix missing runtime library Baruch Siach
@ 2017-12-31 16:14 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-12-31 16:14 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 31 Dec 2017 15:25:45 +0200, Baruch Siach wrote:
> 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>
> ---
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-31 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-31 13:25 [Buildroot] [PATCH] i2c-tools: fix missing runtime library Baruch Siach
2017-12-31 16:14 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox