1 |
Support gcc9 cpu optimzation patch. |
2 |
|
3 |
Any better thoughts on handling this in a |
4 |
cleaner, easily maintainable manner ? |
5 |
|
6 |
Signed-off-by: Mike Pagano <mpagano@g.o> |
7 |
--- |
8 |
eclass/kernel-2.eclass | 19 +++++++++++++++++-- |
9 |
1 file changed, 17 insertions(+), 2 deletions(-) |
10 |
|
11 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
12 |
index 1b2b5d3e8..0b5a53aa2 100644 |
13 |
--- a/eclass/kernel-2.eclass |
14 |
+++ b/eclass/kernel-2.eclass |
15 |
@@ -1234,14 +1234,29 @@ unipatch() { |
16 |
if [[ ${GCC_MAJOR_VER} -lt 8 ]] && [[ ${GCC_MAJOR_VER} -gt 4 ]]; then |
17 |
if kernel_is ge 4 13 ; then |
18 |
UNIPATCH_DROP+=" 5011_enable-cpu-optimizations-for-gcc8.patch" |
19 |
+ UNIPATCH_DROP+=" 5012_enable-cpu-optimizations-for-gcc9.patch" |
20 |
fi |
21 |
- # optimization patch for gcc >= 8 and kernel ge 4.13 |
22 |
- elif [[ "${GCC_MAJOR_VER}" -ge 8 ]]; then |
23 |
+ # optimization patch for gcc = 8 and kernel ge 4.13 |
24 |
+ elif [[ "${GCC_MAJOR_VER}" -eq 8 ]]; then |
25 |
if kernel_is ge 4 13; then |
26 |
# support old kernels for a period. For now, remove as all gcc versions required are masked |
27 |
UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch" |
28 |
UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch" |
29 |
+ UNIPATCH_DROP+=" 5012_enable-cpu-optimizations-for-gcc9.patch" |
30 |
fi |
31 |
+ # optimization patch for gcc = 9 and kernel ge 4.13 |
32 |
+ elif [[ "${GCC_MAJOR_VER}" -eq 9 ]]; then |
33 |
+ if kernel_is ge 4 13; then |
34 |
+ # support old kernels for a period. For now, remove as all gcc versions required are masked |
35 |
+ UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch" |
36 |
+ UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch" |
37 |
+ UNIPATCH_DROP+=" 5011_enable-cpu-optimizations-for-gcc8.patch" |
38 |
+ fi |
39 |
+ else |
40 |
+ UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch" |
41 |
+ UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch" |
42 |
+ UNIPATCH_DROP+=" 5011_enable-cpu-optimizations-for-gcc8.patch" |
43 |
+ UNIPATCH_DROP+=" 5012_enable-cpu-optimizations-for-gcc9.patch" |
44 |
fi |
45 |
fi |
46 |
done |
47 |
-- |
48 |
2.21.0 |
49 |
|
50 |
-- |
51 |
Mike Pagano |
52 |
Gentoo Developer - Kernel Project |
53 |
Gentoo Sources - Member |
54 |
E-Mail : mpagano@g.o |
55 |
GnuPG FP : EEE2 601D 0763 B60F 848C 9E14 3C33 C650 B576 E4E3 |
56 |
Public Key : http://pgp.mit.edu:11371/pks/lookup?search=0xB576E4E3&op=index |