diff mbox series

[wrynose,10/36] python3targetconfig: pull in nativesdk python when building nativesdk recipes

Message ID 380eed4dbda27b7df165bc2ff665d32bf7f50d83.1781960051.git.yoann.congal@smile.fr
State New
Headers show
Series [wrynose,01/36] gcc: Upgrade GCC to 15.3 release | expand

Commit Message

Yoann Congal June 20, 2026, 12:59 p.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

For the class to work, target python needs to be present in the target
sysroot. This was done only for :target builds but not for :nativesdk
ones, and this patch addresses that.

The issue was reported in
https://lists.openembedded.org/g/openembedded-core/message/237188
(but the proposed fix there isn't right).

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f297b18f6b54bfa07b4e3ded98eec962dfdb6f77)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 meta/classes-recipe/python3targetconfig.bbclass | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/classes-recipe/python3targetconfig.bbclass b/meta/classes-recipe/python3targetconfig.bbclass
index 2877665737a..3b9333a4be2 100644
--- a/meta/classes-recipe/python3targetconfig.bbclass
+++ b/meta/classes-recipe/python3targetconfig.bbclass
@@ -8,6 +8,7 @@  inherit python3native
 
 EXTRA_PYTHON_DEPENDS ?= ""
 EXTRA_PYTHON_DEPENDS:class-target = "python3"
+EXTRA_PYTHON_DEPENDS:class-nativesdk = "nativesdk-python3"
 DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
 
 setup_target_config() {