summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2015-09-21 21:23:44 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 09:53:09 +0100
commit329d09f5f60c5d1d20baefa8e9df68ca2abd9aa1 (patch)
tree0a83908cdaa9449d8c7756fc197cbbc0e0c02289 /meta/recipes-core/systemd
parent554c817a7a00d409f3ec20bfe8910ced45a4ca04 (diff)
downloadpoky-329d09f5f60c5d1d20baefa8e9df68ca2abd9aa1.tar.gz
systemd: disable problematic GCC 5.2 optimizations
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] (From OE-Core rev: 338f18e5808ea0472350d0c26edd0938ffbdcd23) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd')
-rw-r--r--meta/recipes-core/systemd/systemd_225.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_225.bb b/meta/recipes-core/systemd/systemd_225.bb
index f7d4c7df48..4a19ff4c63 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} \
123# uclibc does not have NSS 123# uclibc does not have NSS
124EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname " 124EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
125 125
126# disable problematic GCC 5.2 optimizations [YOCTO #8291]
127FULL_OPTIMIZATION += "-fno-schedule-insns -fno-schedule-insns2"
128
126do_configure_prepend() { 129do_configure_prepend() {
127 export NM="${HOST_PREFIX}gcc-nm" 130 export NM="${HOST_PREFIX}gcc-nm"
128 export AR="${HOST_PREFIX}gcc-ar" 131 export AR="${HOST_PREFIX}gcc-ar"