1 |
commit: d71fe9c18bd7fe412185f3ca79379c631bde79b2 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 22 00:08:37 2019 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 22 00:09:43 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d71fe9c1 |
7 |
|
8 |
eclass: Move cpu optimization patch for older kernels. |
9 |
|
10 |
See bug #678498 |
11 |
|
12 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
13 |
|
14 |
eclass/kernel-2.eclass | 5 ++--- |
15 |
1 file changed, 2 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
18 |
index ece1edfb36c..6303e3e6c49 100644 |
19 |
--- a/eclass/kernel-2.eclass |
20 |
+++ b/eclass/kernel-2.eclass |
21 |
@@ -1230,9 +1230,6 @@ unipatch() { |
22 |
local GCC_MAJOR_VER=$(gcc-major-version) |
23 |
local GCC_MINOR_VER=$(gcc-minor-version) |
24 |
|
25 |
- # support old kernels for a period. For now, remove as all gcc versions required are masked |
26 |
- UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch" |
27 |
- |
28 |
# optimization patch for gcc < 8.X and kernel > 4.13 |
29 |
if [[ ${GCC_MAJOR_VER} -lt 8 ]] && [[ ${GCC_MAJOR_VER} -gt 4 ]]; then |
30 |
if kernel_is ge 4 13 ; then |
31 |
@@ -1241,6 +1238,8 @@ unipatch() { |
32 |
# optimization patch for gcc >= 8 and kernel ge 4.13 |
33 |
elif [[ "${GCC_MAJOR_VER}" -ge 8 ]]; then |
34 |
if kernel_is ge 4 13; then |
35 |
+ # support old kernels for a period. For now, remove as all gcc versions required are masked |
36 |
+ UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch" |
37 |
UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch" |
38 |
fi |
39 |
fi |