Skip to contentSkip to conversation

python3-gpiod: setup target config in ptest compile

PATCH Applied Bartosz Golaszewski 2 participants 3 messages Nov 15, 2023 – Nov 16, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-gpiod: setup target config in ptest compile

From: Bartosz Golaszewski <[email protected]>

The python3targetconfig class does not setup the build config for target in do_ptest_compile_base so we need to do this manually. While at it: use the provided nativepython3 command instead of using the full path.

---
 meta-python/recipes-devtools/python/python3-gpiod_2.1.3.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-gpiod_2.1.3.bb +2 -1
index ef2f01fd4..310694ade 100644
@@ -28,7 +28,8 @@ RDEPENDS:${PN}-ptest += " \
 export LINK_SYSTEM_LIBGPIOD = "1"
 
 do_compile_ptest() {
-    ${STAGING_BINDIR_NATIVE}/python3-native/python3 build_tests.py
+    setup_target_config
+    nativepython3 build_tests.py
 }
 
 do_install_ptest() {
Signature · 1 line
2.40.1
Applied
#1 lore raw
Quoted 5 lines · Bartosz Golaszewski

The python3targetconfig class does not setup the build config for target in do_ptest_compile_base so we need to do this manually. While at it: use the provided nativepython3 command instead of using the full path.

Applied, thanks!

[1/1] python3-gpiod: setup target config in ptest compile

      commit: 936ae8ef2e7943a8bc9fba33ef099901e59a028f

Best regards,

Signature · 1 line
Khem Raj <[email protected]>
Applied
#2 lore raw
In reply to Bartosz Golaszewski
Quoted 5 lines · Bartosz Golaszewski

The python3targetconfig class does not setup the build config for target in do_ptest_compile_base so we need to do this manually. While at it: use the provided nativepython3 command instead of using the full path.

Applied, thanks!

[1/1] python3-gpiod: setup target config in ptest compile

      commit: 936ae8ef2e7943a8bc9fba33ef099901e59a028f

Best regards,

Signature · 1 line
Khem Raj <[email protected]>