[1/2] python3-smbbus: use DISTUTILS_SETUP_PATH

Message ID 20220114135352.3996274-1-ross.burton@arm.com
State New
Headers show
Series [1/2] python3-smbbus: use DISTUTILS_SETUP_PATH | expand

Commit Message

Ross Burton Jan. 14, 2022, 1:53 p.m. UTC
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-python/recipes-devtools/python/python3-smbus_4.3.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Patch

diff --git a/meta-python/recipes-devtools/python/python3-smbus_4.3.bb b/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
index e2fd20fc00..a09a108b36 100644
--- a/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
+++ b/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
@@ -1,11 +1,14 @@ 
 SUMMARY = "Set of i2c tools for linux - Python module"
 LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://smbusmodule.c;beginline=1;endline=18;md5=46e424fb045901ab25e0f92c28c80055"
+LIC_FILES_CHKSUM = "file://py-smbus/smbusmodule.c;beginline=1;endline=18;md5=46e424fb045901ab25e0f92c28c80055"
 
 SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/i2c-tools-${PV}.tar.gz "
 SRC_URI[sha256sum] = "eec464e42301d93586cbeca3845ed61bff40f560670e5b35baec57301d438148"
 
 DEPENDS += "i2c-tools"
 
-S = "${WORKDIR}/i2c-tools-${PV}/py-smbus"
+S = "${WORKDIR}/i2c-tools-${PV}"
+
 inherit distutils3
+
+DISTUTILS_SETUP_PATH = "${S}/py-smbus"