Merge ~xnox/ubuntu/+source/glibc:focal-power10 into ~ubuntu-core-dev/ubuntu/+source/glibc:ubuntu/focal
- Git
- lp:~xnox/ubuntu/+source/glibc
- focal-power10
- Merge into ubuntu/focal
Proposed by
Dimitri John Ledkov
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 94595c7061d99a99d8d36d21fc7cd7c8c7e00689 | ||||
Proposed branch: | ~xnox/ubuntu/+source/glibc:focal-power10 | ||||
Merge into: | ~ubuntu-core-dev/ubuntu/+source/glibc:ubuntu/focal | ||||
Diff against target: |
470 lines (+425/-0) 6 files modified
debian/changelog (+4/-0) debian/patches/powerpc/146fea07640387c78e334933de24b6353e1f0eba.patch (+161/-0) debian/patches/powerpc/ae725e3f9cb4e1eb825ebe1d55241c98c2ea32f1.patch (+42/-0) debian/patches/powerpc/d2ba3677da7a785556fcd708404d8e049b1c063b.patch (+183/-0) debian/patches/powerpc/f6add169c89bbdd139a2eb845686127ead5799cd.patch (+31/-0) debian/patches/series (+4/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Balint Reczey | Pending | ||
Review via email: mp+389404@code.launchpad.net |
Commit message
debian/
Description of the change
To post a comment you must log in.
Revision history for this message
Balint Reczey (rbalint) wrote : | # |
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/debian/changelog b/debian/changelog | |||
2 | index e03e93b..4059246 100644 | |||
3 | --- a/debian/changelog | |||
4 | +++ b/debian/changelog | |||
5 | @@ -15,6 +15,10 @@ glibc (2.31-0ubuntu9.1) UNRELEASED; urgency=medium | |||
6 | 15 | * Fall back to calling nanosleep syscall when __clock_nanosleep returns EINVAL | 15 | * Fall back to calling nanosleep syscall when __clock_nanosleep returns EINVAL |
7 | 16 | (LP: #1871129) | 16 | (LP: #1871129) |
8 | 17 | 17 | ||
9 | 18 | [ Dimitri John Ledkov ] | ||
10 | 19 | * debian/patches/powerpc: Cherrypick upstream patches to support POWER10 | ||
11 | 20 | optimized library loading. LP: #1887989 | ||
12 | 21 | |||
13 | 18 | -- Balint Reczey <rbalint@ubuntu.com> Mon, 03 Aug 2020 19:44:44 +0200 | 22 | -- Balint Reczey <rbalint@ubuntu.com> Mon, 03 Aug 2020 19:44:44 +0200 |
14 | 19 | 23 | ||
15 | 20 | glibc (2.31-0ubuntu9) focal; urgency=medium | 24 | glibc (2.31-0ubuntu9) focal; urgency=medium |
16 | diff --git a/debian/patches/powerpc/146fea07640387c78e334933de24b6353e1f0eba.patch b/debian/patches/powerpc/146fea07640387c78e334933de24b6353e1f0eba.patch | |||
17 | 21 | new file mode 100644 | 25 | new file mode 100644 |
18 | index 0000000..7b7611f | |||
19 | --- /dev/null | |||
20 | +++ b/debian/patches/powerpc/146fea07640387c78e334933de24b6353e1f0eba.patch | |||
21 | @@ -0,0 +1,161 @@ | |||
22 | 1 | From 146fea07640387c78e334933de24b6353e1f0eba Mon Sep 17 00:00:00 2001 | ||
23 | 2 | From: "Paul E. Murphy" <murphyp@linux.vnet.ibm.com> | ||
24 | 3 | Date: Fri, 8 May 2020 08:27:56 -0500 | ||
25 | 4 | Subject: [PATCH] powerpc: Automatic CPU detection in preconfigure | ||
26 | 5 | |||
27 | 6 | Added a check to detect the CPU value in preconfigure, so that glibc is | ||
28 | 7 | built with the correct --with-cpu value. And move existing checks into | ||
29 | 8 | preconfigure.ac. | ||
30 | 9 | |||
31 | 10 | Co-Authored-By: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> | ||
32 | 11 | Co-Authored-By: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | ||
33 | 12 | --- | ||
34 | 13 | sysdeps/powerpc/preconfigure | 62 +++++++++++++++++++++++++++++---- | ||
35 | 14 | sysdeps/powerpc/preconfigure.ac | 58 ++++++++++++++++++++++++++++++ | ||
36 | 15 | 2 files changed, 113 insertions(+), 7 deletions(-) | ||
37 | 16 | create mode 100644 sysdeps/powerpc/preconfigure.ac | ||
38 | 17 | |||
39 | 18 | diff --git a/sysdeps/powerpc/preconfigure b/sysdeps/powerpc/preconfigure | ||
40 | 19 | index a0ea745bb4..deac5a41e2 100644 | ||
41 | 20 | --- a/sysdeps/powerpc/preconfigure | ||
42 | 21 | +++ b/sysdeps/powerpc/preconfigure | ||
43 | 22 | @@ -1,4 +1,5 @@ | ||
44 | 23 | -# preconfigure fragment for powerpc. | ||
45 | 24 | +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! | ||
46 | 25 | + # Local preconfigure fragment for sysdeps/powerpc | ||
47 | 26 | |||
48 | 27 | case "$machine" in | ||
49 | 28 | powerpc64le) | ||
50 | 29 | @@ -13,12 +14,59 @@ powerpc*) | ||
51 | 30 | case "$host_os" in | ||
52 | 31 | *gnuspe*) | ||
53 | 32 | # SPE support was dropped in glibc 2.30. | ||
54 | 33 | - # We can't use AC_MSG_ERROR here. | ||
55 | 34 | - # The parent script is in the middle of printing the | ||
56 | 35 | - # "checking for sysdeps preconfigure fragments" line. | ||
57 | 36 | - echo >&2 | ||
58 | 37 | - echo "Host system type $host is no longer supported." >&2 | ||
59 | 38 | - exit 1 | ||
60 | 39 | + as_fn_error $? "Host system type $host is no longer supported." "$LINENO" 5 | ||
61 | 40 | + ;; | ||
62 | 41 | + esac | ||
63 | 42 | + ;; | ||
64 | 43 | +esac | ||
65 | 44 | + | ||
66 | 45 | +# Lets ask the compiler which Power processor we've got, in case the user did | ||
67 | 46 | +# not choose a --with-cpu value. Scan a trivial generated assembly program | ||
68 | 47 | +# and scrape the first | ||
69 | 48 | +# .machine <machine> | ||
70 | 49 | +# or | ||
71 | 50 | +# .ascii "-mcpu=<machine>" | ||
72 | 51 | +# directive which shows up, and try using it. | ||
73 | 52 | +case "${machine}:${submachine}" in | ||
74 | 53 | +*powerpc*:) | ||
75 | 54 | + archcpu=`echo "int foo () { return 0; }" \ | ||
76 | 55 | + | $CC $CFLAGS $CPPFLAGS -S -frecord-gcc-switches -xc -o - - \ | ||
77 | 56 | + | grep -E "mcpu=|.machine" -m 1 \ | ||
78 | 57 | + | sed -e "s/.*machine //" -e "s/.*mcpu=\(.*\)\"/\1/"` | ||
79 | 58 | + # Note if you add patterns here you must ensure that an appropriate | ||
80 | 59 | + # directory exists in sysdeps/powerpc. Likewise, if we find a | ||
81 | 60 | + # cpu, don't let the generic configure append extra compiler options. | ||
82 | 61 | + case "$archcpu" in | ||
83 | 62 | + 405fp|440fp|464fp|476fp) | ||
84 | 63 | + submachine=${archcpu%fp} | ||
85 | 64 | + if ${libc_cv_cc_submachine+:} false; then : | ||
86 | 65 | + $as_echo_n "(cached) " >&6 | ||
87 | 66 | +else | ||
88 | 67 | + libc_cv_cc_submachine="" | ||
89 | 68 | +fi | ||
90 | 69 | + | ||
91 | 70 | + ;; | ||
92 | 71 | + 405|440|464|476) | ||
93 | 72 | + submachine=${archcpu} | ||
94 | 73 | + if ${libc_cv_cc_submachine+:} false; then : | ||
95 | 74 | + $as_echo_n "(cached) " >&6 | ||
96 | 75 | +else | ||
97 | 76 | + libc_cv_cc_submachine="" | ||
98 | 77 | +fi | ||
99 | 78 | + | ||
100 | 79 | + ;; | ||
101 | 80 | + | ||
102 | 81 | + a2|970|power[4-9]|power5x|power6+) | ||
103 | 82 | + submachine=${archcpu} | ||
104 | 83 | + if ${libc_cv_cc_submachine+:} false; then : | ||
105 | 84 | + $as_echo_n "(cached) " >&6 | ||
106 | 85 | +else | ||
107 | 86 | + libc_cv_cc_submachine="" | ||
108 | 87 | +fi | ||
109 | 88 | + | ||
110 | 89 | + ;; | ||
111 | 90 | + *) | ||
112 | 91 | + # We couldn't figure it out, assume none | ||
113 | 92 | ;; | ||
114 | 93 | esac | ||
115 | 94 | ;; | ||
116 | 95 | diff --git a/sysdeps/powerpc/preconfigure.ac b/sysdeps/powerpc/preconfigure.ac | ||
117 | 96 | new file mode 100644 | ||
118 | 97 | index 0000000000..e6a5ae93a5 | ||
119 | 98 | --- /dev/null | ||
120 | 99 | +++ b/sysdeps/powerpc/preconfigure.ac | ||
121 | 100 | @@ -0,0 +1,58 @@ | ||
122 | 101 | +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. | ||
123 | 102 | +# Local preconfigure fragment for sysdeps/powerpc | ||
124 | 103 | + | ||
125 | 104 | +case "$machine" in | ||
126 | 105 | +powerpc64le) | ||
127 | 106 | + base_machine=powerpc machine=powerpc/powerpc64/le | ||
128 | 107 | + ;; | ||
129 | 108 | +powerpc64*) | ||
130 | 109 | + base_machine=powerpc machine=powerpc/powerpc64/be | ||
131 | 110 | + ;; | ||
132 | 111 | +powerpc*) | ||
133 | 112 | + base_machine=powerpc machine=powerpc/powerpc32 | ||
134 | 113 | + with_fp_cond="!defined __NO_FPRS__" | ||
135 | 114 | + case "$host_os" in | ||
136 | 115 | + *gnuspe*) | ||
137 | 116 | + # SPE support was dropped in glibc 2.30. | ||
138 | 117 | + AC_MSG_ERROR([Host system type $host is no longer supported.]) | ||
139 | 118 | + ;; | ||
140 | 119 | + esac | ||
141 | 120 | + ;; | ||
142 | 121 | +esac | ||
143 | 122 | + | ||
144 | 123 | +# Lets ask the compiler which Power processor we've got, in case the user did | ||
145 | 124 | +# not choose a --with-cpu value. Scan a trivial generated assembly program | ||
146 | 125 | +# and scrape the first | ||
147 | 126 | +# .machine <machine> | ||
148 | 127 | +# or | ||
149 | 128 | +# .ascii "-mcpu=<machine>" | ||
150 | 129 | +# directive which shows up, and try using it. | ||
151 | 130 | +case "${machine}:${submachine}" in | ||
152 | 131 | +*powerpc*:) | ||
153 | 132 | + archcpu=`echo "int foo () { return 0; }" \ | ||
154 | 133 | + | $CC $CFLAGS $CPPFLAGS -S -frecord-gcc-switches -xc -o - - \ | ||
155 | 134 | + | grep -E "mcpu=|[.]machine" -m 1 \ | ||
156 | 135 | + | sed -e "s/.*machine //" -e "s/.*mcpu=\(.*\)\"/\1/"` | ||
157 | 136 | + # Note if you add patterns here you must ensure that an appropriate | ||
158 | 137 | + # directory exists in sysdeps/powerpc. Likewise, if we find a | ||
159 | 138 | + # cpu, don't let the generic configure append extra compiler options. | ||
160 | 139 | + case "$archcpu" in | ||
161 | 140 | + 405fp|440fp|464fp|476fp) | ||
162 | 141 | + submachine=${archcpu%fp} | ||
163 | 142 | + AC_CACHE_VAL(libc_cv_cc_submachine,libc_cv_cc_submachine="") | ||
164 | 143 | + ;; | ||
165 | 144 | + 405|440|464|476) | ||
166 | 145 | + submachine=${archcpu} | ||
167 | 146 | + AC_CACHE_VAL(libc_cv_cc_submachine,libc_cv_cc_submachine="") | ||
168 | 147 | + ;; | ||
169 | 148 | + | ||
170 | 149 | + a2|970|power[[4-9]]|power5x|power6+) | ||
171 | 150 | + submachine=${archcpu} | ||
172 | 151 | + AC_CACHE_VAL(libc_cv_cc_submachine,libc_cv_cc_submachine="") | ||
173 | 152 | + ;; | ||
174 | 153 | + *) | ||
175 | 154 | + # We couldn't figure it out, assume none | ||
176 | 155 | + ;; | ||
177 | 156 | + esac | ||
178 | 157 | + ;; | ||
179 | 158 | +esac | ||
180 | 159 | -- | ||
181 | 160 | 2.27.0 | ||
182 | 161 | |||
183 | diff --git a/debian/patches/powerpc/ae725e3f9cb4e1eb825ebe1d55241c98c2ea32f1.patch b/debian/patches/powerpc/ae725e3f9cb4e1eb825ebe1d55241c98c2ea32f1.patch | |||
184 | 0 | new file mode 100644 | 162 | new file mode 100644 |
185 | index 0000000..55220e4 | |||
186 | --- /dev/null | |||
187 | +++ b/debian/patches/powerpc/ae725e3f9cb4e1eb825ebe1d55241c98c2ea32f1.patch | |||
188 | @@ -0,0 +1,42 @@ | |||
189 | 1 | From ae725e3f9cb4e1eb825ebe1d55241c98c2ea32f1 Mon Sep 17 00:00:00 2001 | ||
190 | 2 | From: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | ||
191 | 3 | Date: Mon, 15 Jun 2020 11:15:57 -0300 | ||
192 | 4 | Subject: [PATCH] powerpc: Add new hwcap values | ||
193 | 5 | |||
194 | 6 | Linux commit ID ee988c11acf6f9464b7b44e9a091bf6afb3b3a49 reserved 2 new | ||
195 | 7 | bits in AT_HWCAP2: | ||
196 | 8 | - PPC_FEATURE2_ARCH_3_1 indicates the availability of the POWER ISA | ||
197 | 9 | 3.1; | ||
198 | 10 | - PPC_FEATURE2_MMA indicates the availability of the Matrix-Multiply | ||
199 | 11 | Assist facility. | ||
200 | 12 | --- | ||
201 | 13 | sysdeps/powerpc/bits/hwcap.h | 2 ++ | ||
202 | 14 | sysdeps/powerpc/dl-procinfo.c | 2 +- | ||
203 | 15 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
204 | 16 | |||
205 | 17 | diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h | ||
206 | 18 | index 4a5a7bcded..e8f3fdea92 100644 | ||
207 | 19 | --- a/sysdeps/powerpc/bits/hwcap.h | ||
208 | 20 | +++ b/sysdeps/powerpc/bits/hwcap.h | ||
209 | 21 | @@ -74,3 +74,5 @@ | ||
210 | 22 | #define PPC_FEATURE2_SCV 0x00100000 /* scv syscall. */ | ||
211 | 23 | #define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000 /* TM without suspended | ||
212 | 24 | state. */ | ||
213 | 25 | +#define PPC_FEATURE2_ARCH_3_1 0x00040000 /* ISA 3.1. */ | ||
214 | 26 | +#define PPC_FEATURE2_MMA 0x00020000 /* Matrix-Multiply Assist. */ | ||
215 | 27 | diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c | ||
216 | 28 | index 7a7d93dd0a..8dc07728f0 100644 | ||
217 | 29 | --- a/sysdeps/powerpc/dl-procinfo.c | ||
218 | 30 | +++ b/sysdeps/powerpc/dl-procinfo.c | ||
219 | 31 | @@ -77,7 +77,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][15] | ||
220 | 32 | "", "", "", "", | ||
221 | 33 | "", "", "", "", | ||
222 | 34 | "", "", "", "", | ||
223 | 35 | - "", "", "", "htm-no-suspend", | ||
224 | 36 | + "", "mma", "arch_3_1", "htm-no-suspend", | ||
225 | 37 | "scv", "darn", "ieee128", "arch_3_00", | ||
226 | 38 | "htm-nosc", "vcrypto", "tar", "isel", | ||
227 | 39 | "ebb", "dscr", "htm", "arch_2_07", | ||
228 | 40 | -- | ||
229 | 41 | 2.27.0 | ||
230 | 42 | |||
231 | diff --git a/debian/patches/powerpc/d2ba3677da7a785556fcd708404d8e049b1c063b.patch b/debian/patches/powerpc/d2ba3677da7a785556fcd708404d8e049b1c063b.patch | |||
232 | 0 | new file mode 100644 | 43 | new file mode 100644 |
233 | index 0000000..c052433 | |||
234 | --- /dev/null | |||
235 | +++ b/debian/patches/powerpc/d2ba3677da7a785556fcd708404d8e049b1c063b.patch | |||
236 | @@ -0,0 +1,183 @@ | |||
237 | 1 | From d2ba3677da7a785556fcd708404d8e049b1c063b Mon Sep 17 00:00:00 2001 | ||
238 | 2 | From: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | ||
239 | 3 | Date: Wed, 24 Jun 2020 18:04:41 -0300 | ||
240 | 4 | Subject: [PATCH] powerpc: Add support for POWER10 | ||
241 | 5 | |||
242 | 6 | 1. Add the directories to hold POWER10 files. | ||
243 | 7 | |||
244 | 8 | 2. Add support to select POWER10 libraries based on AT_PLATFORM. | ||
245 | 9 | |||
246 | 10 | 3. Let submachine=power10 be set automatically. | ||
247 | 11 | --- | ||
248 | 12 | sysdeps/powerpc/dl-procinfo.h | 11 ++++++++++- | ||
249 | 13 | sysdeps/powerpc/powerpc32/power10/Implies | 2 ++ | ||
250 | 14 | .../powerpc/powerpc32/power10/fpu/multiarch/Implies | 1 + | ||
251 | 15 | sysdeps/powerpc/powerpc32/power10/multiarch/Implies | 1 + | ||
252 | 16 | sysdeps/powerpc/powerpc64/be/power10/Implies | 2 ++ | ||
253 | 17 | sysdeps/powerpc/powerpc64/be/power10/fpu/Implies | 1 + | ||
254 | 18 | .../powerpc64/be/power10/fpu/multiarch/Implies | 1 + | ||
255 | 19 | .../powerpc/powerpc64/be/power10/multiarch/Implies | 1 + | ||
256 | 20 | sysdeps/powerpc/powerpc64/le/power10/Implies | 2 ++ | ||
257 | 21 | sysdeps/powerpc/powerpc64/le/power10/fpu/Implies | 1 + | ||
258 | 22 | .../powerpc64/le/power10/fpu/multiarch/Implies | 1 + | ||
259 | 23 | .../powerpc/powerpc64/le/power10/multiarch/Implies | 1 + | ||
260 | 24 | sysdeps/powerpc/preconfigure | 2 +- | ||
261 | 25 | sysdeps/powerpc/preconfigure.ac | 2 +- | ||
262 | 26 | 14 files changed, 26 insertions(+), 3 deletions(-) | ||
263 | 27 | create mode 100644 sysdeps/powerpc/powerpc32/power10/Implies | ||
264 | 28 | create mode 100644 sysdeps/powerpc/powerpc32/power10/fpu/multiarch/Implies | ||
265 | 29 | create mode 100644 sysdeps/powerpc/powerpc32/power10/multiarch/Implies | ||
266 | 30 | create mode 100644 sysdeps/powerpc/powerpc64/be/power10/Implies | ||
267 | 31 | create mode 100644 sysdeps/powerpc/powerpc64/be/power10/fpu/Implies | ||
268 | 32 | create mode 100644 sysdeps/powerpc/powerpc64/be/power10/fpu/multiarch/Implies | ||
269 | 33 | create mode 100644 sysdeps/powerpc/powerpc64/be/power10/multiarch/Implies | ||
270 | 34 | create mode 100644 sysdeps/powerpc/powerpc64/le/power10/Implies | ||
271 | 35 | create mode 100644 sysdeps/powerpc/powerpc64/le/power10/fpu/Implies | ||
272 | 36 | create mode 100644 sysdeps/powerpc/powerpc64/le/power10/fpu/multiarch/Implies | ||
273 | 37 | create mode 100644 sysdeps/powerpc/powerpc64/le/power10/multiarch/Implies | ||
274 | 38 | |||
275 | 39 | diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h | ||
276 | 40 | index 9ae85f46ec..497dc568e9 100644 | ||
277 | 41 | --- a/sysdeps/powerpc/dl-procinfo.h | ||
278 | 42 | +++ b/sysdeps/powerpc/dl-procinfo.h | ||
279 | 43 | @@ -37,7 +37,7 @@ | ||
280 | 44 | #define HWCAP_IMPORTANT (PPC_FEATURE_HAS_ALTIVEC \ | ||
281 | 45 | + PPC_FEATURE_HAS_DFP) | ||
282 | 46 | |||
283 | 47 | -#define _DL_PLATFORMS_COUNT 15 | ||
284 | 48 | +#define _DL_PLATFORMS_COUNT 16 | ||
285 | 49 | |||
286 | 50 | #define _DL_FIRST_PLATFORM 32 | ||
287 | 51 | /* Mask to filter out platforms. */ | ||
288 | 52 | @@ -60,6 +60,7 @@ | ||
289 | 53 | #define PPC_PLATFORM_PPC476 12 | ||
290 | 54 | #define PPC_PLATFORM_POWER8 13 | ||
291 | 55 | #define PPC_PLATFORM_POWER9 14 | ||
292 | 56 | +#define PPC_PLATFORM_POWER10 15 | ||
293 | 57 | |||
294 | 58 | static inline const char * | ||
295 | 59 | __attribute__ ((unused)) | ||
296 | 60 | @@ -91,6 +92,14 @@ _dl_string_platform (const char *str) | ||
297 | 61 | str += 5; | ||
298 | 62 | switch (*str) | ||
299 | 63 | { | ||
300 | 64 | + case '1': | ||
301 | 65 | + if (str[1] == '0') | ||
302 | 66 | + { | ||
303 | 67 | + ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER10; | ||
304 | 68 | + } | ||
305 | 69 | + else | ||
306 | 70 | + return -1; | ||
307 | 71 | + break; | ||
308 | 72 | case '4': | ||
309 | 73 | ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER4; | ||
310 | 74 | break; | ||
311 | 75 | diff --git a/sysdeps/powerpc/powerpc32/power10/Implies b/sysdeps/powerpc/powerpc32/power10/Implies | ||
312 | 76 | new file mode 100644 | ||
313 | 77 | index 0000000000..b298aca71f | ||
314 | 78 | --- /dev/null | ||
315 | 79 | +++ b/sysdeps/powerpc/powerpc32/power10/Implies | ||
316 | 80 | @@ -0,0 +1,2 @@ | ||
317 | 81 | +powerpc/powerpc32/power9/fpu | ||
318 | 82 | +powerpc/powerpc32/power9 | ||
319 | 83 | diff --git a/sysdeps/powerpc/powerpc32/power10/fpu/multiarch/Implies b/sysdeps/powerpc/powerpc32/power10/fpu/multiarch/Implies | ||
320 | 84 | new file mode 100644 | ||
321 | 85 | index 0000000000..1ffddd1cda | ||
322 | 86 | --- /dev/null | ||
323 | 87 | +++ b/sysdeps/powerpc/powerpc32/power10/fpu/multiarch/Implies | ||
324 | 88 | @@ -0,0 +1 @@ | ||
325 | 89 | +powerpc/powerpc32/power9/fpu/multiarch | ||
326 | 90 | diff --git a/sysdeps/powerpc/powerpc32/power10/multiarch/Implies b/sysdeps/powerpc/powerpc32/power10/multiarch/Implies | ||
327 | 91 | new file mode 100644 | ||
328 | 92 | index 0000000000..46363b5207 | ||
329 | 93 | --- /dev/null | ||
330 | 94 | +++ b/sysdeps/powerpc/powerpc32/power10/multiarch/Implies | ||
331 | 95 | @@ -0,0 +1 @@ | ||
332 | 96 | +powerpc/powerpc32/power9/multiarch | ||
333 | 97 | diff --git a/sysdeps/powerpc/powerpc64/be/power10/Implies b/sysdeps/powerpc/powerpc64/be/power10/Implies | ||
334 | 98 | new file mode 100644 | ||
335 | 99 | index 0000000000..5aea9bc144 | ||
336 | 100 | --- /dev/null | ||
337 | 101 | +++ b/sysdeps/powerpc/powerpc64/be/power10/Implies | ||
338 | 102 | @@ -0,0 +1,2 @@ | ||
339 | 103 | +powerpc/powerpc64/be/power9/fpu | ||
340 | 104 | +powerpc/powerpc64/be/power9 | ||
341 | 105 | diff --git a/sysdeps/powerpc/powerpc64/be/power10/fpu/Implies b/sysdeps/powerpc/powerpc64/be/power10/fpu/Implies | ||
342 | 106 | new file mode 100644 | ||
343 | 107 | index 0000000000..19b2a318e2 | ||
344 | 108 | --- /dev/null | ||
345 | 109 | +++ b/sysdeps/powerpc/powerpc64/be/power10/fpu/Implies | ||
346 | 110 | @@ -0,0 +1 @@ | ||
347 | 111 | +powerpc/powerpc64/be/power9/fpu | ||
348 | 112 | diff --git a/sysdeps/powerpc/powerpc64/be/power10/fpu/multiarch/Implies b/sysdeps/powerpc/powerpc64/be/power10/fpu/multiarch/Implies | ||
349 | 113 | new file mode 100644 | ||
350 | 114 | index 0000000000..a336feb55b | ||
351 | 115 | --- /dev/null | ||
352 | 116 | +++ b/sysdeps/powerpc/powerpc64/be/power10/fpu/multiarch/Implies | ||
353 | 117 | @@ -0,0 +1 @@ | ||
354 | 118 | +powerpc/powerpc64/be/power9/fpu/multiarch | ||
355 | 119 | diff --git a/sysdeps/powerpc/powerpc64/be/power10/multiarch/Implies b/sysdeps/powerpc/powerpc64/be/power10/multiarch/Implies | ||
356 | 120 | new file mode 100644 | ||
357 | 121 | index 0000000000..b4c0f0a58a | ||
358 | 122 | --- /dev/null | ||
359 | 123 | +++ b/sysdeps/powerpc/powerpc64/be/power10/multiarch/Implies | ||
360 | 124 | @@ -0,0 +1 @@ | ||
361 | 125 | +powerpc/powerpc64/be/power9/multiarch | ||
362 | 126 | diff --git a/sysdeps/powerpc/powerpc64/le/power10/Implies b/sysdeps/powerpc/powerpc64/le/power10/Implies | ||
363 | 127 | new file mode 100644 | ||
364 | 128 | index 0000000000..9e1b787348 | ||
365 | 129 | --- /dev/null | ||
366 | 130 | +++ b/sysdeps/powerpc/powerpc64/le/power10/Implies | ||
367 | 131 | @@ -0,0 +1,2 @@ | ||
368 | 132 | +powerpc/powerpc64/le/power9/fpu | ||
369 | 133 | +powerpc/powerpc64/le/power9 | ||
370 | 134 | diff --git a/sysdeps/powerpc/powerpc64/le/power10/fpu/Implies b/sysdeps/powerpc/powerpc64/le/power10/fpu/Implies | ||
371 | 135 | new file mode 100644 | ||
372 | 136 | index 0000000000..1b3525a0d7 | ||
373 | 137 | --- /dev/null | ||
374 | 138 | +++ b/sysdeps/powerpc/powerpc64/le/power10/fpu/Implies | ||
375 | 139 | @@ -0,0 +1 @@ | ||
376 | 140 | +powerpc/powerpc64/le/power9/fpu | ||
377 | 141 | diff --git a/sysdeps/powerpc/powerpc64/le/power10/fpu/multiarch/Implies b/sysdeps/powerpc/powerpc64/le/power10/fpu/multiarch/Implies | ||
378 | 142 | new file mode 100644 | ||
379 | 143 | index 0000000000..189beb801d | ||
380 | 144 | --- /dev/null | ||
381 | 145 | +++ b/sysdeps/powerpc/powerpc64/le/power10/fpu/multiarch/Implies | ||
382 | 146 | @@ -0,0 +1 @@ | ||
383 | 147 | +powerpc/powerpc64/le/power9/fpu/multiarch | ||
384 | 148 | diff --git a/sysdeps/powerpc/powerpc64/le/power10/multiarch/Implies b/sysdeps/powerpc/powerpc64/le/power10/multiarch/Implies | ||
385 | 149 | new file mode 100644 | ||
386 | 150 | index 0000000000..e6e5fc887e | ||
387 | 151 | --- /dev/null | ||
388 | 152 | +++ b/sysdeps/powerpc/powerpc64/le/power10/multiarch/Implies | ||
389 | 153 | @@ -0,0 +1 @@ | ||
390 | 154 | +powerpc/powerpc64/le/power9/multiarch | ||
391 | 155 | diff --git a/sysdeps/powerpc/preconfigure b/sysdeps/powerpc/preconfigure | ||
392 | 156 | index deac5a41e2..dfe8e20399 100644 | ||
393 | 157 | --- a/sysdeps/powerpc/preconfigure | ||
394 | 158 | +++ b/sysdeps/powerpc/preconfigure | ||
395 | 159 | @@ -56,7 +56,7 @@ fi | ||
396 | 160 | |||
397 | 161 | ;; | ||
398 | 162 | |||
399 | 163 | - a2|970|power[4-9]|power5x|power6+) | ||
400 | 164 | + a2|970|power[4-9]|power5x|power6+|power10) | ||
401 | 165 | submachine=${archcpu} | ||
402 | 166 | if ${libc_cv_cc_submachine+:} false; then : | ||
403 | 167 | $as_echo_n "(cached) " >&6 | ||
404 | 168 | diff --git a/sysdeps/powerpc/preconfigure.ac b/sysdeps/powerpc/preconfigure.ac | ||
405 | 169 | index e6a5ae93a5..6c63bd8257 100644 | ||
406 | 170 | --- a/sysdeps/powerpc/preconfigure.ac | ||
407 | 171 | +++ b/sysdeps/powerpc/preconfigure.ac | ||
408 | 172 | @@ -46,7 +46,7 @@ case "${machine}:${submachine}" in | ||
409 | 173 | AC_CACHE_VAL(libc_cv_cc_submachine,libc_cv_cc_submachine="") | ||
410 | 174 | ;; | ||
411 | 175 | |||
412 | 176 | - a2|970|power[[4-9]]|power5x|power6+) | ||
413 | 177 | + a2|970|power[[4-9]]|power5x|power6+|power10) | ||
414 | 178 | submachine=${archcpu} | ||
415 | 179 | AC_CACHE_VAL(libc_cv_cc_submachine,libc_cv_cc_submachine="") | ||
416 | 180 | ;; | ||
417 | 181 | -- | ||
418 | 182 | 2.27.0 | ||
419 | 183 | |||
420 | diff --git a/debian/patches/powerpc/f6add169c89bbdd139a2eb845686127ead5799cd.patch b/debian/patches/powerpc/f6add169c89bbdd139a2eb845686127ead5799cd.patch | |||
421 | 0 | new file mode 100644 | 184 | new file mode 100644 |
422 | index 0000000..308ec72 | |||
423 | --- /dev/null | |||
424 | +++ b/debian/patches/powerpc/f6add169c89bbdd139a2eb845686127ead5799cd.patch | |||
425 | @@ -0,0 +1,31 @@ | |||
426 | 1 | From f6add169c89bbdd139a2eb845686127ead5799cd Mon Sep 17 00:00:00 2001 | ||
427 | 2 | From: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | ||
428 | 3 | Date: Tue, 21 Jul 2020 18:01:39 -0300 | ||
429 | 4 | Subject: [PATCH] powerpc: Fix POWER10 selection | ||
430 | 5 | |||
431 | 6 | Add a line that was missing from a previous commit. | ||
432 | 7 | Without increasing str, the null-byte is not validated, and | ||
433 | 8 | _dl_string_platform returns -1. | ||
434 | 9 | |||
435 | 10 | Fixes: d2ba3677da7a ("powerpc: Add support for POWER10") | ||
436 | 11 | |||
437 | 12 | Reviewed-by: Carlos O'Donell <carlos@redhat.com> | ||
438 | 13 | --- | ||
439 | 14 | sysdeps/powerpc/dl-procinfo.h | 1 + | ||
440 | 15 | 1 file changed, 1 insertion(+) | ||
441 | 16 | |||
442 | 17 | diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h | ||
443 | 18 | index 497dc568e9..f07500619a 100644 | ||
444 | 19 | --- a/sysdeps/powerpc/dl-procinfo.h | ||
445 | 20 | +++ b/sysdeps/powerpc/dl-procinfo.h | ||
446 | 21 | @@ -96,6 +96,7 @@ _dl_string_platform (const char *str) | ||
447 | 22 | if (str[1] == '0') | ||
448 | 23 | { | ||
449 | 24 | ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER10; | ||
450 | 25 | + str++; | ||
451 | 26 | } | ||
452 | 27 | else | ||
453 | 28 | return -1; | ||
454 | 29 | -- | ||
455 | 30 | 2.27.0 | ||
456 | 31 | |||
457 | diff --git a/debian/patches/series b/debian/patches/series | |||
458 | index 2c9bfac..f38e388 100644 | |||
459 | --- a/debian/patches/series | |||
460 | +++ b/debian/patches/series | |||
461 | @@ -86,6 +86,10 @@ m68k/submitted-gcc34-seccomment.diff | |||
462 | 86 | mips/submitted-rld_map.diff | 86 | mips/submitted-rld_map.diff |
463 | 87 | 87 | ||
464 | 88 | powerpc/local-powerpc8xx-dcbz.diff | 88 | powerpc/local-powerpc8xx-dcbz.diff |
465 | 89 | powerpc/146fea07640387c78e334933de24b6353e1f0eba.patch | ||
466 | 90 | powerpc/ae725e3f9cb4e1eb825ebe1d55241c98c2ea32f1.patch | ||
467 | 91 | powerpc/d2ba3677da7a785556fcd708404d8e049b1c063b.patch | ||
468 | 92 | powerpc/f6add169c89bbdd139a2eb845686127ead5799cd.patch | ||
469 | 89 | 93 | ||
470 | 90 | sh4/local-fpscr_values.diff | 94 | sh4/local-fpscr_values.diff |
471 | 91 | 95 |
Looks good, I do a test build in https:/ /launchpad. net/~ci- train-ppa- service/ +archive/ ubuntu/ 4017/+packages then merge it, thanks!