i2c-tools.mk 678 B

123456789101112131415161718192021222324
  1. ################################################################################
  2. #
  3. # i2c-tools
  4. #
  5. ################################################################################
  6. I2C_TOOLS_VERSION = 3.1.1
  7. I2C_TOOLS_SOURCE = i2c-tools-$(I2C_TOOLS_VERSION).tar.bz2
  8. I2C_TOOLS_SITE = http://dl.lm-sensors.org/i2c-tools/releases
  9. I2C_TOOLS_LICENSE = GPLv2+, GPLv2 (py-smbus)
  10. I2C_TOOLS_LICENSE_FILES = COPYING
  11. define I2C_TOOLS_BUILD_CMDS
  12. $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
  13. endef
  14. define I2C_TOOLS_INSTALL_TARGET_CMDS
  15. for i in i2cdump i2cget i2cset i2cdetect; \
  16. do \
  17. $(INSTALL) -m 755 -D $(@D)/tools/$$i $(TARGET_DIR)/usr/bin/$$i; \
  18. done
  19. endef
  20. $(eval $(generic-package))