summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-05 13:31:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-08 15:44:20 +0100
commit749c85917f38793ca492f667f606621095e4314c (patch)
tree3cac1686e48416b6d1e3e7b0c6a17bfd07634549 /meta/recipes-devtools
parent1ab2fd2d036e93bff84a78a85acc04a240ee5d07 (diff)
downloadpoky-749c85917f38793ca492f667f606621095e4314c.tar.gz
rust-llvm: Enable nativesdk variant
To allow nativesdk variants of the tools to build, enable a nativesdk variant of rust-llvm. (From OE-Core rev: b4b24dc53fdb86624da71b854dfe018923a203fe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rust/rust-llvm.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rust/rust-llvm.inc b/meta/recipes-devtools/rust/rust-llvm.inc
index 9baad12dc8..625eb57041 100644
--- a/meta/recipes-devtools/rust/rust-llvm.inc
+++ b/meta/recipes-devtools/rust/rust-llvm.inc
@@ -47,6 +47,13 @@ EXTRA_OECMAKE:append:class-target = "\
47 -DLLVM_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/llvm-rust/bin/llvm-config \ 47 -DLLVM_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/llvm-rust/bin/llvm-config \
48" 48"
49 49
50EXTRA_OECMAKE:append:class-nativesdk = "\
51 -DCMAKE_CROSSCOMPILING:BOOL=ON \
52 -DLLVM_BUILD_TOOLS=OFF \
53 -DLLVM_TABLEGEN=${STAGING_LIBDIR_NATIVE}/llvm-rust/bin/llvm-tblgen \
54 -DLLVM_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/llvm-rust/bin/llvm-config \
55"
56
50# The debug symbols are huge here (>2GB) so suppress them since they 57# The debug symbols are huge here (>2GB) so suppress them since they
51# provide almost no value. If you really need them then override this 58# provide almost no value. If you really need them then override this
52INHIBIT_PACKAGE_DEBUG_SPLIT = "1" 59INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
@@ -68,4 +75,4 @@ FILES:${PN}-staticdev =+ "${libdir}/llvm-rust/*/*.a"
68FILES:${PN} += "${libdir}/libLLVM*.so.* ${libdir}/llvm-rust/lib/*.so.* ${libdir}/llvm-rust/bin" 75FILES:${PN} += "${libdir}/libLLVM*.so.* ${libdir}/llvm-rust/lib/*.so.* ${libdir}/llvm-rust/bin"
69FILES:${PN}-dev += "${datadir}/llvm ${libdir}/llvm-rust/lib/*.so ${libdir}/llvm-rust/include ${libdir}/llvm-rust/share ${libdir}/llvm-rust/lib/cmake" 76FILES:${PN}-dev += "${datadir}/llvm ${libdir}/llvm-rust/lib/*.so ${libdir}/llvm-rust/include ${libdir}/llvm-rust/share ${libdir}/llvm-rust/lib/cmake"
70 77
71BBCLASSEXTEND = "native" 78BBCLASSEXTEND = "native nativesdk"