[3/3] python3targetconfig: Use for nativesdk too

Message ID 20220223200726.3279678-3-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit b1b5fec350b390fa7f2d26966df1411b032faf87
Headers show
Series [1/3] pip_install_wheel: Use --ignore-installed for pip | expand

Commit Message

Richard Purdie Feb. 23, 2022, 8:07 p.m. UTC
nativesdk is a cross compiled target and therefore should use the target
config, not the native one. Copy the target entries accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/python3targetconfig.bbclass | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Patch

diff --git a/meta/classes/python3targetconfig.bbclass b/meta/classes/python3targetconfig.bbclass
index 5c8457acaac..2476858caeb 100644
--- a/meta/classes/python3targetconfig.bbclass
+++ b/meta/classes/python3targetconfig.bbclass
@@ -15,3 +15,15 @@  do_compile:prepend:class-target() {
 do_install:prepend:class-target() {
         export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
 }
+
+do_configure:prepend:class-nativesdk() {
+        export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
+}
+
+do_compile:prepend:class-nativesdk() {
+        export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
+}
+
+do_install:prepend:class-nativesdk() {
+        export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
+}