Skip to contentSkip to conversation

i2c-tools: add busybox to dependencies

PATCH New Bartosz Golaszewski 2 participants 4 messages Aug 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 i2c-tools: add busybox to dependencies

Before changing the install directory of i2c-tools to /usr/sbin/ make sure busybox is built first (if selected) in order to ensure that the symlinks to the busybox-provided versions are overwritten by the i2c-tools' install commands.

---
 package/i2c-tools/i2c-tools.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/i2c-tools/i2c-tools.mk +4 -0
index 9625acf..38f84a3 100644
@@ -17,6 +17,10 @@ ifeq ($(BR2_PACKAGE_PYTHON3),y)
 I2C_TOOLS_DEPENDENCIES += python3
 endif
 
+ifeq ($(BR2_PACKAGE_BUSYBOX),y)
+I2C_TOOLS_DEPENDENCIES += busybox
+endif
+
 # Build/install steps mirror the distutil python package type in the python package
 # infrastructure
 ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 i2c-tools: install binaries to /usr/sbin

Upstream i2c-tools executables are installed to /usr/sbin by default. Make buildroot match this behavior.

---
 package/i2c-tools/i2c-tools.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/i2c-tools/i2c-tools.mk +1 -1
index 38f84a3..e16b940 100644
@@ -53,7 +53,7 @@ endef
 define I2C_TOOLS_INSTALL_TARGET_CMDS
 	for i in i2cdump i2cget i2cset i2cdetect; \
 	do \
-		$(INSTALL) -m 755 -D $(@D)/tools/$$i $(TARGET_DIR)/usr/bin/$$i; \
+		$(INSTALL) -m 755 -D $(@D)/tools/$$i $(TARGET_DIR)/usr/sbin/$$i; \
 	done
 	$(I2C_TOOLS_INSTALL_PYSMBUS)
 endef
Signature · 1 line
2.7.4
#3 lore raw

PATCH 1/2 i2c-tools: add busybox to dependencies

In reply to Bartosz Golaszewski
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bartosz" == Bartosz Golaszewski <[email protected]> writes:

Before changing the install directory of i2c-tools to /usr/sbin/ make sure busybox is built first (if selected) in order to ensure that the symlinks to the busybox-provided versions are overwritten by the i2c-tools' install commands.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard