]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3targetconfig: Use for nativesdk too
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Feb 2022 15:50:40 +0000 (15:50 +0000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 21 Mar 2022 14:15:10 +0000 (04:15 -1000)
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>
(cherry picked from commit b1b5fec350b390fa7f2d26966df1411b032faf87)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/python3targetconfig.bbclass

index fc1025c20785b5b1a81c7010ad8abdbc3c1a11c5..a6e67f1bf8b4824b18c72170c71d666c1f03de43 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"
+}