Commit Graph

6 Commits

Author SHA1 Message Date
Richard Purdie
0246851d8a toolchain/clang: Set compiler providers correctly
The clang toolchain include file contained some incorrect settings from
the initial draft of the file. Fix those to point at the correct compiler.

(From OE-Core rev: 265d1993669cba1ddf60a048798fe943a903c942)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-06-09 17:43:42 +01:00
Khem Raj
b34d2ad567 meta: Add TCOVERRIDE for toolchain selection at recipe scope
TCOVERRIDE is defined to toolchain-<TOOLCHAIN> and its added to OVERRIDES
that a recipe can see and it can use "toolchain-gcc" or "toolchain-clang"
to set specific metadata based upon global distro toolchain policy.

(From OE-Core rev: 6010f47124d9067609bbe5d9ff16193c8bf79acf)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-06-09 17:43:42 +01:00
Khem Raj
c83ef63b13 clang.inc: Add compiler-rt to default deps when using clang compiler
This provides needed built-ins which clang uses along with libgcc
its not yet a full replacement for libgcc

(From OE-Core rev: 2976122bec35165248b312e93ec111b745a91333)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-05-27 09:01:17 +01:00
Khem Raj
28dcaf5692 clang.inc: Specify ldso when using usrmerge
This matches the expectations of distro setups and clang's understanding
of what the ldso should look like

(From OE-Core rev: 2e95208253211872a501407a1180dc192a634195)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-05-27 09:01:17 +01:00
Khem Raj
f2bef9fa5f toolchain/clang: Remove duplicate RANLIB setting
Its already assigned couple of lines above

(From OE-Core rev: 67a1d55cb50703a3f585521cf44693ade66cc88b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-04-29 09:55:31 +01:00
Richard Purdie
08c435c1bc bitbake.conf: Start to separate out gcc related variable definitions
To be able to switch toolchains, we need to separate out the gcc definitions
into seperate include files. This patch starts that process. Whilst the
include is still hardcoded for now, it allows developers to start experimenting
with this locally more easily and stops people reinventing this patch. A
sample clang configuruation is also included which I was using for experimentation.

(From OE-Core rev: be063d58c0985a2c43c16302efb44706fbf3f1b3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-03-05 09:31:16 +00:00