All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] systemd: disable problematic GCC 5.2 optimizations
@ 2015-09-21 17:56 Jonathan Liu
  0 siblings, 0 replies; only message in thread
From: Jonathan Liu @ 2015-09-21 17:56 UTC (permalink / raw)
  To: openembedded-core

This fixes systemd failing to start on Raspberry Pi 2 if it is compiled
with GCC 5.2.

It would try to start "Journal Service" and "udev Kernel Device Manager"
but fail repeatedly.

[YOCTO #8291]

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta/recipes-core/systemd/systemd_225.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_225.bb b/meta/recipes-core/systemd/systemd_225.bb
index f7d4c7d..fd1a3f3 100644
--- a/meta/recipes-core/systemd/systemd_225.bb
+++ b/meta/recipes-core/systemd/systemd_225.bb
@@ -123,6 +123,9 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
 # uclibc does not have NSS
 EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
 
+# disable problematic GCC 5.2 optimizations [YOCTO #8291]
+FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2"
+
 do_configure_prepend() {
 	export NM="${HOST_PREFIX}gcc-nm"
 	export AR="${HOST_PREFIX}gcc-ar"
-- 
2.5.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-21 17:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21 17:56 [PATCH v2] systemd: disable problematic GCC 5.2 optimizations Jonathan Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.