summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2017-07-17 14:30:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-27 22:36:45 +0100
commit182e0a290d647bf51ea44b2741eaf4f812d95ad1 (patch)
tree6e70347408c6e2184c1295662967430b18f9cbad
parentb7e7b5e294f944c27fb1d2be61c0cf38f6c81ba8 (diff)
downloadpoky-182e0a290d647bf51ea44b2741eaf4f812d95ad1.tar.gz
systemd: workaround login failure on qemumips64 when 'pam' is enabled
Append " -fno-tree-switch-conversion -fno-tree-tail-merge" to FULL_OPTIMIZATION to workaround login problem on qemumips64. Otherwise, user cannot login onto the target even username and password are provided. (From OE-Core rev: 89d53c742d3538744b892237698ffde2c9c60009) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> (cherry picked from commit 35403ba3707c3c8dd94bcc557eef6f7c66696bc5) Hand applied Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/systemd/systemd_232.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/systemd/systemd_232.bb
index e54c723d7f..25fe496417 100644
--- a/meta/recipes-core/systemd/systemd_232.bb
+++ b/meta/recipes-core/systemd/systemd_232.bb
@@ -161,6 +161,9 @@ CFLAGS .= "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', ' -DVALGRIND=1', ''
161# disable problematic GCC 5.2 optimizations [YOCTO #8291] 161# disable problematic GCC 5.2 optimizations [YOCTO #8291]
162FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2" 162FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2"
163 163
164# Avoid login failure on qemumips64 when pam is enabled
165FULL_OPTIMIZATION_append_mips64 = " -fno-tree-switch-conversion -fno-tree-tail-merge"
166
164do_configure_prepend() { 167do_configure_prepend() {
165 export NM="${HOST_PREFIX}gcc-nm" 168 export NM="${HOST_PREFIX}gcc-nm"
166 export AR="${HOST_PREFIX}gcc-ar" 169 export AR="${HOST_PREFIX}gcc-ar"