diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-30 10:26:36 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-30 14:58:28 -0700 |
commit | ecf0f6aaaf12f60f88cfad0f6ff21a3d63e0119c (patch) | |
tree | 96c7ac7437b91276b92b48b2f4beef7c38baa953 /recipes-core | |
parent | f18df4a93a70b9482b5f64bc615e5810ea7aac39 (diff) | |
download | meta-clang-ecf0f6aaaf12f60f88cfad0f6ff21a3d63e0119c.tar.gz |
systemd: Disable O2 when using clang for now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/systemd/systemd_%.bbappend | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-core/systemd/systemd_%.bbappend b/recipes-core/systemd/systemd_%.bbappend new file mode 100644 index 0000000..a54d6ee --- /dev/null +++ b/recipes-core/systemd/systemd_%.bbappend | |||
@@ -0,0 +1,7 @@ | |||
1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | # systemd 251.4 started to cause boot issues see | ||
4 | # https://bugzilla.yoctoproject.org/show_bug.cgi?id=14906 | ||
5 | # As a workaround disable O2 and use Os for now with clang | ||
6 | SELECTED_OPTIMIZATION:append:toolchain-clang = "-Os" | ||
7 | SELECTED_OPTIMIZATION:remove:toolchain-clang = "-O2" | ||