diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-05 13:31:10 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:44:20 +0100 |
| commit | 749c85917f38793ca492f667f606621095e4314c (patch) | |
| tree | 3cac1686e48416b6d1e3e7b0c6a17bfd07634549 | |
| parent | 1ab2fd2d036e93bff84a78a85acc04a240ee5d07 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-devtools/rust/rust-llvm.inc | 9 |
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 | ||
| 50 | EXTRA_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 |
| 52 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 59 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
| @@ -68,4 +75,4 @@ FILES:${PN}-staticdev =+ "${libdir}/llvm-rust/*/*.a" | |||
| 68 | FILES:${PN} += "${libdir}/libLLVM*.so.* ${libdir}/llvm-rust/lib/*.so.* ${libdir}/llvm-rust/bin" | 75 | FILES:${PN} += "${libdir}/libLLVM*.so.* ${libdir}/llvm-rust/lib/*.so.* ${libdir}/llvm-rust/bin" |
| 69 | FILES:${PN}-dev += "${datadir}/llvm ${libdir}/llvm-rust/lib/*.so ${libdir}/llvm-rust/include ${libdir}/llvm-rust/share ${libdir}/llvm-rust/lib/cmake" | 76 | FILES:${PN}-dev += "${datadir}/llvm ${libdir}/llvm-rust/lib/*.so ${libdir}/llvm-rust/include ${libdir}/llvm-rust/share ${libdir}/llvm-rust/lib/cmake" |
| 70 | 77 | ||
| 71 | BBCLASSEXTEND = "native" | 78 | BBCLASSEXTEND = "native nativesdk" |
