Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] i2c-tools: add busybox to dependencies
@ 2016-08-02 10:27 Bartosz Golaszewski
  2016-08-02 10:27 ` [Buildroot] [PATCH 2/2] i2c-tools: install binaries to /usr/sbin Bartosz Golaszewski
  2016-08-02 11:09 ` [Buildroot] [PATCH 1/2] i2c-tools: add busybox to dependencies Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2016-08-02 10:27 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 package/i2c-tools/i2c-tools.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/i2c-tools/i2c-tools.mk b/package/i2c-tools/i2c-tools.mk
index 9625acf..38f84a3 100644
--- a/package/i2c-tools/i2c-tools.mk
+++ b/package/i2c-tools/i2c-tools.mk
@@ -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)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] i2c-tools: install binaries to /usr/sbin
  2016-08-02 10:27 [Buildroot] [PATCH 1/2] i2c-tools: add busybox to dependencies Bartosz Golaszewski
@ 2016-08-02 10:27 ` Bartosz Golaszewski
  2016-08-02 11:09   ` Peter Korsgaard
  2016-08-02 11:09 ` [Buildroot] [PATCH 1/2] i2c-tools: add busybox to dependencies Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2016-08-02 10:27 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 package/i2c-tools/i2c-tools.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/i2c-tools/i2c-tools.mk b/package/i2c-tools/i2c-tools.mk
index 38f84a3..e16b940 100644
--- a/package/i2c-tools/i2c-tools.mk
+++ b/package/i2c-tools/i2c-tools.mk
@@ -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
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] i2c-tools: add busybox to dependencies
  2016-08-02 10:27 [Buildroot] [PATCH 1/2] i2c-tools: add busybox to dependencies Bartosz Golaszewski
  2016-08-02 10:27 ` [Buildroot] [PATCH 2/2] i2c-tools: install binaries to /usr/sbin Bartosz Golaszewski
@ 2016-08-02 11:09 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2016-08-02 11:09 UTC (permalink / raw)
  To: buildroot

>>>>> "Bartosz" == Bartosz Golaszewski <bgolaszewski@baylibre.com> 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.

 > Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] i2c-tools: install binaries to /usr/sbin
  2016-08-02 10:27 ` [Buildroot] [PATCH 2/2] i2c-tools: install binaries to /usr/sbin Bartosz Golaszewski
@ 2016-08-02 11:09   ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2016-08-02 11:09 UTC (permalink / raw)
  To: buildroot

>>>>> "Bartosz" == Bartosz Golaszewski <bgolaszewski@baylibre.com> writes:

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

 > Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-02 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 10:27 [Buildroot] [PATCH 1/2] i2c-tools: add busybox to dependencies Bartosz Golaszewski
2016-08-02 10:27 ` [Buildroot] [PATCH 2/2] i2c-tools: install binaries to /usr/sbin Bartosz Golaszewski
2016-08-02 11:09   ` Peter Korsgaard
2016-08-02 11:09 ` [Buildroot] [PATCH 1/2] i2c-tools: add busybox to dependencies Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox