diff mbox series

python3targetconfig: pull in nativesdk python when building nativesdk recipes

Message ID 20260518111659.282642-1-alex.kanavin@gmail.com
State New
Headers show
Series python3targetconfig: pull in nativesdk python when building nativesdk recipes | expand

Commit Message

Alexander Kanavin May 18, 2026, 11:16 a.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>
---
 meta/classes-recipe/python3targetconfig.bbclass | 1 +
 1 file changed, 1 insertion(+)

Comments

João Henrique Freitas May 18, 2026, 2:49 p.m. UTC | #1
Hi,

This fix works for me. It makes sense.

wrynose branch also has the very same issue. Could this fix also be applied
there ?

Thanks

On Mon, May 18, 2026 at 8:17 AM Alexander Kanavin via lists.openembedded.org
<alex.kanavin=gmail.com@lists.openembedded.org> wrote:

> 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>
> ---
>  meta/classes-recipe/python3targetconfig.bbclass | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes-recipe/python3targetconfig.bbclass
> b/meta/classes-recipe/python3targetconfig.bbclass
> index 2877665737..3b9333a4be 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() {
> --
> 2.47.3
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#237233):
> https://lists.openembedded.org/g/openembedded-core/message/237233
> Mute This Topic: https://lists.openembedded.org/mt/119370886/3616735
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> joaohf@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/meta/classes-recipe/python3targetconfig.bbclass b/meta/classes-recipe/python3targetconfig.bbclass
index 2877665737..3b9333a4be 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() {