All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] i2c-tools: install devt headers to staging dir
@ 2016-09-23 14:06 julien.boibessot at free.fr
  2016-09-23 21:18 ` Arnout Vandecappelle
  2016-09-24 14:18 ` Thomas Petazzoni
  0 siblings, 2 replies; 10+ messages in thread
From: julien.boibessot at free.fr @ 2016-09-23 14:06 UTC (permalink / raw)
  To: buildroot

From: Julien BOIBESSOT <julien.boibessot@armadeus.com>

On debian (and maybe other distribs), there is a package named libi2c-dev
that install a useful header from i2c-tools (for the one wanting to write
I2C applications). See https://packages.debian.org/fr/wheezy/libi2c-dev.
Do the same in Buildroot. Note that "install" target in i2c-tools Makefile
would do the job, but BR installs i2c-tools's stuff manualy.

Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com>
---
 package/i2c-tools/i2c-tools.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/i2c-tools/i2c-tools.mk b/package/i2c-tools/i2c-tools.mk
index e16b940..5e095f3 100644
--- a/package/i2c-tools/i2c-tools.mk
+++ b/package/i2c-tools/i2c-tools.mk
@@ -8,6 +8,7 @@ I2C_TOOLS_VERSION = v3.1.2
 I2C_TOOLS_SITE = git://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git
 I2C_TOOLS_LICENSE = GPLv2+, GPLv2 (py-smbus)
 I2C_TOOLS_LICENSE_FILES = COPYING
+I2C_TOOLS_INSTALL_STAGING = YES
 
 ifeq ($(BR2_PACKAGE_PYTHON),y)
 I2C_TOOLS_DEPENDENCIES += python
@@ -50,6 +51,10 @@ define I2C_TOOLS_BUILD_CMDS
 	$(I2C_TOOLS_BUILD_PYSMBUS)
 endef
 
+define I2C_TOOLS_INSTALL_STAGING_CMDS
+	$(INSTALL) -m 644 -D $(@D)/include/linux/i2c-dev.h $(STAGING_DIR)/usr/include/linux
+endef
+
 define I2C_TOOLS_INSTALL_TARGET_CMDS
 	for i in i2cdump i2cget i2cset i2cdetect; \
 	do \
-- 
2.1.4

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

end of thread, other threads:[~2016-09-28  8:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-23 14:06 [Buildroot] [PATCH] i2c-tools: install devt headers to staging dir julien.boibessot at free.fr
2016-09-23 21:18 ` Arnout Vandecappelle
2016-09-26 20:19   ` Peter Korsgaard
2016-09-24 14:18 ` Thomas Petazzoni
2016-09-26  8:56   ` Julien Boibessot
2016-09-26 10:21     ` Arnout Vandecappelle
2016-09-26 20:17       ` Peter Korsgaard
2016-09-27  3:57         ` Baruch Siach
2016-09-28  8:24           ` Julien Boibessot
2016-09-28  8:52             ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.