From: julien.boibessot at free.fr <julien.boibessot@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] i2c-tools: install devt headers to staging dir
Date: Fri, 23 Sep 2016 16:06:44 +0200 [thread overview]
Message-ID: <1474639604-23866-1-git-send-email-julien.boibessot@free.fr> (raw)
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
next reply other threads:[~2016-09-23 14:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 14:06 julien.boibessot at free.fr [this message]
2016-09-23 21:18 ` [Buildroot] [PATCH] i2c-tools: install devt headers to staging dir 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1474639604-23866-1-git-send-email-julien.boibessot@free.fr \
--to=julien.boibessot@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.