Move all to deprecated folder.
This commit is contained in:
10
deprecated/firmware/buildroot/package/i2c-tools/Config.in
Normal file
10
deprecated/firmware/buildroot/package/i2c-tools/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_I2C_TOOLS
|
||||
bool "i2c-tools"
|
||||
help
|
||||
Heterogeneous set of I2C tools for Linux
|
||||
|
||||
This package contains a heterogeneous set of I2C tools for Linux:
|
||||
a bus probing tool, a chip dumper, register-level access helpers,
|
||||
EEPROM decoding scripts, and more.
|
||||
|
||||
http://www.lm-sensors.org/wiki/I2CTools
|
||||
@@ -0,0 +1,2 @@
|
||||
# locally computed hash
|
||||
sha256 db5e69f2e2a6e3aa2ecdfe6a5f490b149c504468770f58921c8c5b8a7860a441 i2c-tools-3.1.2.tar.bz2
|
||||
58
deprecated/firmware/buildroot/package/i2c-tools/i2c-tools.mk
Normal file
58
deprecated/firmware/buildroot/package/i2c-tools/i2c-tools.mk
Normal file
@@ -0,0 +1,58 @@
|
||||
################################################################################
|
||||
#
|
||||
# i2c-tools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
I2C_TOOLS_VERSION = 3.1.2
|
||||
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
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||
I2C_TOOLS_DEPENDENCIES += python
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
I2C_TOOLS_DEPENDENCIES += python3
|
||||
endif
|
||||
|
||||
# Build/install steps mirror the distutil python package type in the python package
|
||||
# infrastructure
|
||||
ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
|
||||
# BASE_ENV taken from PKG_PYTHON_DISTUTILS_ENV in package/pkg-python.mk
|
||||
I2C_TOOLS_PYTHON_BASE_ENV = \
|
||||
$(PKG_PYTHON_DISTUTILS_ENV) \
|
||||
CFLAGS="$(TARGET_CFLAGS) -I../include"
|
||||
|
||||
define I2C_TOOLS_BUILD_PYSMBUS
|
||||
(cd $(@D)/py-smbus; \
|
||||
$(I2C_TOOLS_PYTHON_BASE_ENV) \
|
||||
$(HOST_DIR)/usr/bin/python setup.py build \
|
||||
$(PKG_PYTHON_DISTUTILS_BUILD_OPTS))
|
||||
endef
|
||||
|
||||
define I2C_TOOLS_INSTALL_PYSMBUS
|
||||
(cd $(@D)/py-smbus; \
|
||||
$(I2C_TOOLS_PYTHON_BASE_ENV) \
|
||||
$(HOST_DIR)/usr/bin/python setup.py install \
|
||||
$(PKG_PYTHON_DISTUTILS_INSTALL_TARGET_OPTS))
|
||||
endef
|
||||
|
||||
endif # BR2_PACKAGE_PYTHON
|
||||
|
||||
define I2C_TOOLS_BUILD_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||
$(I2C_TOOLS_BUILD_PYSMBUS)
|
||||
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; \
|
||||
done
|
||||
$(I2C_TOOLS_INSTALL_PYSMBUS)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user