@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := i2c-tools
PKG_VERSION := 4.1
PKG_RELEASE := 3
PKG_RELEASE := 4
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE_URL := @KERNEL/software/utils/i2c-tools
@ -20,13 +20,11 @@ PKG_LICENSE:=GPL-2.0-or-later LGPL-2.1-or-later
PKG_LICENSE_FILES := COPYING COPYING.LGPL
PKG_BUILD_PARALLEL := 1
PKG_BUILD_DIR := $( BUILD_DIR) /$( BUILD_VARIANT) -i2c-tools-$( PKG_VERSION)
PYTHON3_PKG_BUILD := 0
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e . . / . . / l a n g / p y t h o n / p y t h o n 3 - p a c k a g e . m k
PKG_UNPACK := $( HOST_TAR) -C $( PKG_BUILD_DIR) --strip-components= 1 -xJf $( DL_DIR) /$( PKG_SOURCE)
d e f i n e P a c k a g e / i 2 c / D e f a u l t
URL:= https://i2c.wiki.kernel.org/index.php/I2C_Tools
TITLE:= I2C
@ -37,7 +35,6 @@ define Package/libi2c
SECTION:= libs
CATEGORY:= Libraries
TITLE += library for i2c-tools
VARIANT:= bin
e n d e f
d e f i n e P a c k a g e / i 2 c - t o o l s
@ -46,7 +43,6 @@ define Package/i2c-tools
CATEGORY:= Utilities
TITLE += tools for Linux
DEPENDS:= +libi2c
VARIANT:= bin
e n d e f
d e f i n e P a c k a g e / p y t h o n 3 - s m b u s
@ -56,7 +52,6 @@ define Package/python3-smbus
CATEGORY:= Languages
TITLE:= Python bindings for the SMBUS
DEPENDS:= +libi2c +python3-light
VARIANT:= python3
e n d e f
d e f i n e P a c k a g e / l i b i 2 c / d e s c r i p t i o n
@ -72,7 +67,8 @@ define Package/python3-smbus/description
This package contain the Python3 bindings for Linux SMBus access through i2c-dev.
e n d e f
i f e q ( $( BUILD_VARIANT ) , b i n )
PYTHON3_PKG_SETUP_ARGS :=
PYTHON3_PKG_SETUP_DIR := py-smbus
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) \
@ -81,6 +77,7 @@ define Build/Compile
STAGING_DIR = " $( STAGING_DIR) " \
LDFLAGS = " $( TARGET_LDFLAGS) " \
CFLAGS = " $( TARGET_CFLAGS) "
$( call Py3Build/Compile)
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
@ -89,11 +86,6 @@ define Build/InstallDev
$( CP) $( PKG_BUILD_DIR) /lib/libi2c.{ a,so*} $( 1) /usr/lib/
e n d e f
e n d i f # ifeq
PYTHON3_PKG_SETUP_ARGS :=
PYTHON3_PKG_SETUP_DIR := py-smbus
d e f i n e P a c k a g e / l i b i 2 c / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /lib/libi2c.so* $( 1) /usr/lib/