summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2019-02-21 19:08:37 -0500
committerMike Pagano <mpagano@gentoo.org>2019-02-21 19:09:43 -0500
commitd71fe9c18bd7fe412185f3ca79379c631bde79b2 (patch)
treea0015412e6208b8412bf43f7785063942a6167bc /eclass
parentsys-apps/dbus: Drop 1.12.12 (r0) (diff)
downloadgentoo-d71fe9c18bd7fe412185f3ca79379c631bde79b2.tar.gz
gentoo-d71fe9c18bd7fe412185f3ca79379c631bde79b2.tar.bz2
gentoo-d71fe9c18bd7fe412185f3ca79379c631bde79b2.zip
eclass: Move cpu optimization patch for older kernels.
See bug #678498 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index ece1edfb36c6..6303e3e6c499 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1230,9 +1230,6 @@ unipatch() {
local GCC_MAJOR_VER=$(gcc-major-version)
local GCC_MINOR_VER=$(gcc-minor-version)
- # support old kernels for a period. For now, remove as all gcc versions required are masked
- UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch"
-
# optimization patch for gcc < 8.X and kernel > 4.13
if [[ ${GCC_MAJOR_VER} -lt 8 ]] && [[ ${GCC_MAJOR_VER} -gt 4 ]]; then
if kernel_is ge 4 13 ; then
@@ -1241,6 +1238,8 @@ unipatch() {
# optimization patch for gcc >= 8 and kernel ge 4.13
elif [[ "${GCC_MAJOR_VER}" -ge 8 ]]; then
if kernel_is ge 4 13; then
+ # support old kernels for a period. For now, remove as all gcc versions required are masked
+ UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch"
UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch"
fi
fi