summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-05-21 22:00:36 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-25 23:59:32 +0100
commit9777af544ca8518a84a417f6fa1ff3f7519d45ac (patch)
treeaa7739da216d3ee67dd48e53852e4b8883f841b3
parentb2b7ad41821694a5c1cc13872104efb58c9159ae (diff)
downloadpoky-9777af544ca8518a84a417f6fa1ff3f7519d45ac.tar.gz
systemd: Make knobs for compiler specific nn, ar, ranlib
These are used with LTO enabled so it has to be compiler specific, making it weak default, makes clang to override them when enabled. (From OE-Core rev: 23cfb8416fb13a32e42ec3860c419ee419e55734) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/systemd/systemd_232.bb10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/systemd/systemd_232.bb
index 6513054471..f843c58869 100644
--- a/meta/recipes-core/systemd/systemd_232.bb
+++ b/meta/recipes-core/systemd/systemd_232.bb
@@ -161,10 +161,14 @@ 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
164COMPILER_NM ?= "${HOST_PREFIX}gcc-nm"
165COMPILER_AR ?= "${HOST_PREFIX}gcc-ar"
166COMPILER_RANLIB ?= "${HOST_PREFIX}gcc-ranlib"
167
164do_configure_prepend() { 168do_configure_prepend() {
165 export NM="${HOST_PREFIX}gcc-nm" 169 export NM="${COMPILER_NM}"
166 export AR="${HOST_PREFIX}gcc-ar" 170 export AR="${COMPILER_AR}"
167 export RANLIB="${HOST_PREFIX}gcc-ranlib" 171 export RANLIB="${COMPILER_RANLIB}"
168 export KMOD="${base_bindir}/kmod" 172 export KMOD="${base_bindir}/kmod"
169 if [ -d ${S}/units.pre_sed ] ; then 173 if [ -d ${S}/units.pre_sed ] ; then
170 cp -r ${S}/units.pre_sed ${S}/units 174 cp -r ${S}/units.pre_sed ${S}/units