]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3targetconfig: Use for nativesdk too
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Feb 2022 15:50:40 +0000 (15:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Feb 2022 12:39:00 +0000 (12:39 +0000)
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

index 5c8457acaac9920bb96d5f2622613313493febef..2476858caebe4890020e5ef6012a29f17ccb22ee 100644 (file)
@@ -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"
+}