]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
clang: move get_clang_arch() functions to the common inc file
authorRoss Burton <ross.burton@arm.com>
Thu, 24 Jul 2025 18:38:48 +0000 (19:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Jul 2025 16:35:16 +0000 (17:35 +0100)
commit1d5298533e97dab7636f885ddd740352782395b0
treecca27319c8e6b8923fcad8f7ca2ba934d85dc77f
parent27aec0bab6fcb19c5d5be30763f4038a46922e8f
clang: move get_clang_arch() functions to the common inc file

These functions are useful outside of just the clang recipe, so move
them to a common .inc file so they can be used by other clang-related
recipes.

Also make the function fail if it doesn't recognise the architecture,
instead of returning the empty string and causing mysterious fails later.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/clang/clang_git.bb
meta/recipes-devtools/clang/common-clang.inc