From ecf0f6aaaf12f60f88cfad0f6ff21a3d63e0119c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 30 Aug 2022 10:26:36 -0700 Subject: systemd: Disable O2 when using clang for now Signed-off-by: Khem Raj --- recipes-core/systemd/systemd_%.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes-core/systemd/systemd_%.bbappend (limited to 'recipes-core') 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 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +# systemd 251.4 started to cause boot issues see +# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14906 +# As a workaround disable O2 and use Os for now with clang +SELECTED_OPTIMIZATION:append:toolchain-clang = "-Os" +SELECTED_OPTIMIZATION:remove:toolchain-clang = "-O2" -- cgit v1.2.3-54-g00ecf