Skip to content

Conversation

@zboszor
Copy link
Contributor

@zboszor zboszor commented Sep 8, 2025

No description provided.

The WORKDIR -> UNPACKDIR transition started with styhead and
whinlatter now requires it:

| S should be set relative to UNPACKDIR, e.g. replace
| WORKDIR with UNPACKDIR in "S = ${WORKDIR}/chromium-${PV}"

Add a new setting that abstracts away the difference between
WORKDIR and UNPACKDIR.

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
@zboszor zboszor force-pushed the meta-chromium-whinlatter-support branch from 47fdbbf to 80bd440 Compare September 9, 2025 07:42
RUNTIME and TC_CXX_RUNTIME are both set explicitly to "llvm"
in chromium.inc. Therefore the :runtime-llvm override is
not needed because it's always on.

Signed-off-by: Zoltán Böszörményi <[email protected]>
RUNTIME and TC_CXX_RUNTIME are both set explicitly to "llvm"
in chromium.inc. Therefore the :runtime-llvm override is
not needed because it's always on.

Signed-off-by: Zoltán Böszörményi <[email protected]>
@zboszor zboszor force-pushed the meta-chromium-whinlatter-support branch from 80bd440 to b47ea0a Compare September 9, 2025 08:23
In whinlatter, TOOLCHAIN_NATIVE is used instead of
TOOLCHAIN:class-native.

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
@zboszor zboszor force-pushed the meta-chromium-whinlatter-support branch 2 times, most recently from 427f857 to 6e4916c Compare September 9, 2025 09:06
Rewrite layer.conf to distinguish between modern Yocto
versions (whinlatter or newer) and older versions.

Added a new WHINLATTER_OR_NEWER (0/1) setting so other settings
and recipes can simplify conditions based on the Yocto version.

Only include clang-layer in LAYERDEPENDS when building on
older-than-whinlatter Yocto versions.

Signed-off-by: Zoltán Böszörményi <[email protected]>
@zboszor zboszor force-pushed the meta-chromium-whinlatter-support branch from 6e4916c to 891ab6b Compare September 9, 2025 09:32
Do not apply these when built under whinlatter:
* 0008-Use-the-correct-path-to-libclang_rt.builtins.a.patch
* 0009-Adjust-the-Rust-build-to-our-needs.patch
* 0017-rust-Use-adler-instead-of-adler2.patch

Add a new patch only for whinlatter called
0020-Do-not-use-fuse-ld-option.patch to prevent linker errors.

With these, rust code still fails to link with errors like:

| error: the option `Z` is only accepted on the nightly compiler
|
| help: consider switching to a nightly toolchain: `rustup default nightly`
|
| note: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html>
|
| note: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features>
|
| error: 1 nightly option were parsed

Signed-off-by: Zoltán Böszörményi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant