i2c-tools: Add i2c-dev.h to staging directory for userspace i2c drivers.
authorJouko Nikula <jouko.nikula@espotel.com>
Tue, 24 Sep 2013 10:18:43 +0000 (13:18 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 3 Mar 2014 21:07:50 +0000 (22:07 +0100)
Signed-off-by: Jouko Nikula <jouko.nikula@espotel.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/i2c-tools/i2c-tools.mk

index c6a967d9878a76c5900c5144dea3e6212d680784..450dba7b249bf26f69a6feb1b2ee0ec78f1118dc 100644 (file)
@@ -9,6 +9,7 @@ I2C_TOOLS_SOURCE = i2c-tools-$(I2C_TOOLS_VERSION).tar.bz2
 I2C_TOOLS_SITE = http://dl.lm-sensors.org/i2c-tools/releases
 I2C_TOOLS_LICENSE = GPLv2+, GPLv2 (py-smbus)
 I2C_TOOLS_LICENSE_FILES = COPYING
+I2C_TOOLS_INSTALL_STAGING = YES
 
 define I2C_TOOLS_BUILD_CMDS
  $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
@@ -21,4 +22,8 @@ define I2C_TOOLS_INSTALL_TARGET_CMDS
        done
 endef
 
+define I2C_TOOLS_INSTALL_STAGING_CMDS
+       $(INSTALL) -D -m644 $(@D)/include/linux/i2c-dev.h $(STAGING_DIR)/usr/include/linux/
+endef
+
 $(eval $(generic-package))