From: Jeffery To Date: Tue, 7 Mar 2023 05:38:07 +0000 (+0800) Subject: i2c-tools: Prepare for new Python build process X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9ec3a25e2fa79af3c60a20d76eff37ef6941e092;p=feed%2Fpackages.git i2c-tools: Prepare for new Python build process This sets build options and adds a call to Py3Build/Install to prepare for the new Python build process. Signed-off-by: Jeffery To (cherry picked from commit 39991fec1e42c1bed0a94e4b9dc584265d07e4f5) --- diff --git a/utils/i2c-tools/Makefile b/utils/i2c-tools/Makefile index 8b1563c2ef..f1a871dd99 100644 --- a/utils/i2c-tools/Makefile +++ b/utils/i2c-tools/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=i2c-tools PKG_VERSION:=4.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@KERNEL/software/utils/i2c-tools @@ -69,6 +69,8 @@ endef PYTHON3_PKG_SETUP_ARGS:= PYTHON3_PKG_SETUP_DIR:=py-smbus +PYTHON3_PKG_WHEEL_NAME:=smbus +PYTHON3_PKG_WHEEL_VERSION:=1.1 define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ @@ -86,6 +88,10 @@ define Build/InstallDev $(CP) $(PKG_BUILD_DIR)/lib/libi2c.{a,so*} $(1)/usr/lib/ endef +define Build/Install + $(call Py3Build/Install) +endef + define Package/libi2c/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_BUILD_DIR)/lib/libi2c.so* $(1)/usr/lib/