diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-09-24 13:08:34 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-25 11:09:04 +0100 |
| commit | 06941b559ee828140fd494dcd893abdeb4d69b03 (patch) | |
| tree | 898856f368a3cec5e36e3b87256e3e0339463f06 | |
| parent | 6863eadeaf7d17419fb915740e0c0f1dfeb4a34f (diff) | |
| download | poky-06941b559ee828140fd494dcd893abdeb4d69b03.tar.gz | |
clang: no need to install tblgen binaries in nativesdk-clang
These are only needed if cross-compiling clang, and if someone is
cross-compiling clang in a SDK they should build their own binaries as
these ones might not match the version of clang they're building.
(From OE-Core rev: c79837a11ccf0f3e5a8ccab4ffb379cdefe482e8)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/clang/clang_git.bb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/recipes-devtools/clang/clang_git.bb b/meta/recipes-devtools/clang/clang_git.bb index 9ccb81a530..53bca1c24f 100644 --- a/meta/recipes-devtools/clang/clang_git.bb +++ b/meta/recipes-devtools/clang/clang_git.bb | |||
| @@ -222,13 +222,11 @@ do_install:append:class-nativesdk () { | |||
| 222 | if ${@bb.utils.contains('PACKAGECONFIG', 'clangd', 'true', 'false', d)}; then | 222 | if ${@bb.utils.contains('PACKAGECONFIG', 'clangd', 'true', 'false', d)}; then |
| 223 | install -Dm 0755 ${B}${BINPATHPREFIX}/bin/clangd-indexer ${D}${bindir}/clangd-indexer | 223 | install -Dm 0755 ${B}${BINPATHPREFIX}/bin/clangd-indexer ${D}${bindir}/clangd-indexer |
| 224 | fi | 224 | fi |
| 225 | install -Dm 0755 ${B}${BINPATHPREFIX}/bin/clang-tblgen ${D}${bindir}/clang-tblgen | 225 | |
| 226 | for f in `find ${D}${bindir} -executable -type f -not -type l`; do | 226 | for f in `find ${D}${bindir} -executable -type f -not -type l`; do |
| 227 | test -n "`file -b $f|grep -i ELF`" && ${STRIP} $f | 227 | test -n "`file -b $f|grep -i ELF`" && ${STRIP} $f |
| 228 | done | 228 | done |
| 229 | ln -sf clang-tblgen ${D}${bindir}/clang-tblgen${PV} | 229 | |
| 230 | ln -sf llvm-tblgen ${D}${bindir}/llvm-tblgen${PV} | ||
| 231 | ln -sf llvm-config ${D}${bindir}/llvm-config${PV} | ||
| 232 | rm -rf ${D}${datadir}/llvm/cmake | 230 | rm -rf ${D}${datadir}/llvm/cmake |
| 233 | rm -rf ${D}${datadir}/llvm | 231 | rm -rf ${D}${datadir}/llvm |
| 234 | 232 | ||
