1 |
commit: ae3e80b78298b0d890e35236b73488f47312f72c |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 24 19:37:57 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 24 19:39:02 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae3e80b7 |
7 |
|
8 |
sys-firmware/intel-microcode: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
licenses/intel-ucode-20180807 | 332 --------------------- |
13 |
sys-firmware/intel-microcode/Manifest | 1 - |
14 |
.../intel-microcode-20180807_p20180808-r2.ebuild | 214 ------------- |
15 |
.../intel-microcode-20180807_p20180808-r3.ebuild | 254 ---------------- |
16 |
4 files changed, 801 deletions(-) |
17 |
|
18 |
diff --git a/licenses/intel-ucode-20180807 b/licenses/intel-ucode-20180807 |
19 |
deleted file mode 100644 |
20 |
index 9fe5d48fc57..00000000000 |
21 |
--- a/licenses/intel-ucode-20180807 |
22 |
+++ /dev/null |
23 |
@@ -1,332 +0,0 @@ |
24 |
-SOFTWARE LICENSE AGREEMENT |
25 |
- |
26 |
-DO NOT DOWNLOAD, INSTALL, ACCESS, COPY, OR USE ANY PORTION OF THE SOFTWARE |
27 |
-UNTIL YOU HAVE READ AND ACCEPTED THE TERMS AND CONDITIONS OF THIS AGREEMENT. BY |
28 |
-INSTALLING, COPYING, ACCESSING, OR USING THE SOFTWARE, YOU AGREE TO BE LEGALLY |
29 |
-BOUND BY THE TERMS AND CONDITIONS OF THIS AGREEMENT. If You do not agree to be |
30 |
-bound by, or the entity for whose benefit You act has not authorized You to |
31 |
-accept, these terms and conditions, do not install, access, copy, or use the |
32 |
-Software and destroy all copies of the Software in Your possession. |
33 |
- |
34 |
-This SOFTWARE LICENSE AGREEMENT (this "Agreement") is entered into between |
35 |
-Intel Corporation, a Delaware corporation ("Intel") and You. "You" refers to |
36 |
-you or your employer or other entity for whose benefit you act, as applicable. |
37 |
-If you are agreeing to the terms and conditions of this Agreement on behalf of |
38 |
-a company or other legal entity, you represent and warrant that you have the |
39 |
-legal authority to bind that legal entity to the Agreement, in which case, |
40 |
-"You" or "Your" shall be in reference to such entity. Intel and You are |
41 |
-referred to herein individually as a "Party" or, together, as the "Parties". |
42 |
-The Parties, in consideration of the mutual covenants contained in this |
43 |
-Agreement, and for other good and valuable consideration, the receipt and |
44 |
-sufficiency of which they acknowledge, and intending to be legally bound, agree |
45 |
-as follows: |
46 |
- |
47 |
-1. PURPOSE. You seek to obtain, and Intel desires to provide You, under the |
48 |
-terms of this Agreement, Software solely for Your efforts to develop and |
49 |
-distribute products integrating Intel hardware and Intel software. "Software" |
50 |
-refers to certain software or other collateral, including, but not limited to, |
51 |
-related components, operating system, application program interfaces, device |
52 |
-drivers, associated media, printed or electronic documentation and any updates, |
53 |
-upgrades or releases thereto associated with Intel product(s), software or |
54 |
-service(s). "Intel-based product" refers to a device that includes, |
55 |
-incorporates, or implements Intel product(s), software or service(s). |
56 |
- |
57 |
-2. LIMITED LICENSE. Conditioned on Your compliance with the terms and |
58 |
-conditions of this Agreement, Intel grants to You a limited, nonexclusive, |
59 |
-nontransferable, revocable, worldwide, fully paid-up license during the term of |
60 |
-this Agreement, without the right to sublicense, under Intel's copyrights |
61 |
-(subject to any third party licensing requirements), to (i) reproduce the |
62 |
-Software only for Your own internal evaluation, testing, validation, and |
63 |
-development of Intel-based products and any associated maintenance thereof; |
64 |
-(ii) reproduce, display, and publicly perform an object code representation of |
65 |
-the Software, only when integrated with and executed by an Intel-based product, |
66 |
-subject to any third party licensing requirements; and (iii) distribute an |
67 |
-object code representation of the Software, provided by Intel, through multiple |
68 |
-levels of distribution, solely as embedded in or for execution on an |
69 |
-Intel-based product and subject to these license terms, and if to an end user, |
70 |
-pursuant to a license agreement with terms and conditions at least as |
71 |
-restrictive as those contained in the Intel End User Software License Agreement |
72 |
-in Appendix A hereto. |
73 |
- |
74 |
-If You are not the final manufacturer or vendor of an Intel-based product |
75 |
-incorporating or designed to incorporate the Software, You may transfer a copy |
76 |
-of the Software to Your Original Equipment Manufacturer (OEM), Original Device |
77 |
-Manufacturer (ODM), distributors, or system integration partners ("Your |
78 |
-Partner") for use in accordance with the terms and conditions of this |
79 |
-Agreement, provided Your Partner agrees to be fully bound by the terms hereof |
80 |
-and provided that You will remain fully liable to Intel for the actions and |
81 |
-inactions of Your Partner(s). |
82 |
- |
83 |
-3. LICENSE RESTRICTIONS. All right, title and interest in and to the Software |
84 |
-and associated documentation are and will remain the exclusive property of |
85 |
-Intel and its licensors or suppliers. Unless expressly permitted under the |
86 |
-Agreement, You will not, and will not allow any third party to (i) use, copy, |
87 |
-distribute, sell or offer to sell the Software or associated documentation; |
88 |
-(ii) modify, adapt, enhance, disassemble, decompile, reverse engineer, change |
89 |
-or create derivative works from the Software except and only to the extent as |
90 |
-specifically required by mandatory applicable laws or any applicable third |
91 |
-party license terms accompanying the Software; (iii) use or make the Software |
92 |
-available for the use or benefit of third parties; or (iv) use the Software on |
93 |
-Your products other than those that include the Intel hardware product(s), |
94 |
-platform(s), or software identified in the Software; or (v) publish or provide |
95 |
-any Software benchmark or comparison test results. You acknowledge that an |
96 |
-essential basis of the bargain in this Agreement is that Intel grants You no |
97 |
-licenses or other rights including, but not limited to, patent, copyright, |
98 |
-trade secret, trademark, trade name, service mark or other intellectual |
99 |
-property licenses or rights with respect to the Software and associated |
100 |
-documentation, by implication, estoppel or otherwise, except for the licenses |
101 |
-expressly granted above. You acknowledge there are significant uses of the |
102 |
-Software in its original, unmodified and uncombined form. You may not remove |
103 |
-any copyright notices from the Software. |
104 |
- |
105 |
-4. LICENSE TO FEEDBACK. This Agreement does not obligate You to provide Intel |
106 |
-with materials, information, comments, suggestions, or other communication |
107 |
-regarding the features, functions, performance or use of the Software |
108 |
-("Feedback"). If any portion of the Software is provided or otherwise made |
109 |
-available by Intel in source code form, to the extent You provide Intel with |
110 |
-Feedback in a tangible form, You grant to Intel and its affiliates a |
111 |
-non-exclusive, perpetual, sublicenseable, irrevocable, worldwide, royalty-free, |
112 |
-fully paid-up and transferable license, to and under all of Your intellectual |
113 |
-property rights, whether perfected or not, to publicly perform, publicly |
114 |
-display, reproduce, use, make, have made, sell, offer for sale, distribute, |
115 |
-import, create derivative works of and otherwise exploit any comments, |
116 |
-suggestions, descriptions, ideas, Your Derivatives or other feedback regarding |
117 |
-the Software provided by You or on Your behalf. |
118 |
- |
119 |
-5. OPEN SOURCE STATEMENT. The Software may include Open Source Software (OSS) |
120 |
-licensed pursuant to OSS license agreement(s) identified in the OSS comments in |
121 |
-the applicable source code file(s) or file header(s) provided with or otherwise |
122 |
-associated with the Software. Neither You nor any OEM, ODM, customer, or |
123 |
-distributor may subject any proprietary portion of the Software to any OSS |
124 |
-license obligations including, without limitation, combining or distributing |
125 |
-the Software with OSS in a manner that subjects Intel, the Software or any |
126 |
-portion thereof to any OSS license obligation. Nothing in this Agreement limits |
127 |
-any rights under, or grants rights that supersede, the terms of any applicable |
128 |
-OSS license. |
129 |
- |
130 |
-6. THIRD PARTY SOFTWARE. Certain third party software provided with or within |
131 |
-the Software may only be used (a) upon securing a license directly from the |
132 |
-owner of the software or (b) in combination with hardware components purchased |
133 |
-from such third party and (c) subject to further license limitations by the |
134 |
-software owner. A listing of any such third party limitations is in one or more |
135 |
-text files accompanying the Software. You acknowledge Intel is not providing |
136 |
-You with a license to such third party software and further that it is Your |
137 |
-responsibility to obtain appropriate licenses from such third parties directly. |
138 |
- |
139 |
-7. CONFIDENTIALITY. The terms and conditions of this Agreement, exchanged |
140 |
-confidential information, as well as the Software are subject to the terms and |
141 |
-conditions of the Non-Disclosure Agreement(s) or Intel Pre-Release Loan |
142 |
-Agreement(s) (referred to herein collectively or individually as "NDA") entered |
143 |
-into by and in force between Intel and You, and in any case no less |
144 |
-confidentiality protection than You apply to Your information of similar |
145 |
-sensitivity. If You would like to have a contractor perform work on Your behalf |
146 |
-that requires any access to or use of Software, You must obtain a written |
147 |
-confidentiality agreement from the contractor which contains terms and |
148 |
-conditions with respect to access to or use of Software no less restrictive |
149 |
-than those set forth in this Agreement, excluding any distribution rights and |
150 |
-use for any other purpose, and You will remain fully liable to Intel for the |
151 |
-actions and inactions of those contractors. You may not use Intel's name in any |
152 |
-publications, advertisements, or other announcements without Intel's prior |
153 |
-written consent. |
154 |
- |
155 |
-8. NO OBLIGATION; NO AGENCY. Intel may make changes to the Software, or items |
156 |
-referenced therein, at any time without notice. Intel is not obligated to |
157 |
-support, update, provide training for, or develop any further version of the |
158 |
-Software or to grant any license thereto. No agency, franchise, partnership, |
159 |
-joint-venture, or employee-employer relationship is intended or created by this |
160 |
-Agreement. |
161 |
- |
162 |
-9. EXCLUSION OF WARRANTIES. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY |
163 |
-EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING WARRANTIES OF |
164 |
-MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. Intel |
165 |
-does not warrant or assume responsibility for the accuracy or completeness of |
166 |
-any information, text, graphics, links or other items within the Software. |
167 |
- |
168 |
-10. LIMITATION OF LIABILITY. IN NO EVENT WILL INTEL OR ITS AFFILIATES, |
169 |
-LICENSORS OR SUPPLIERS (INCLUDING THEIR RESPECTIVE DIRECTORS, OFFICERS, |
170 |
-EMPLOYEES, AND AGENTS) BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT |
171 |
-LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION, OR LOST DATA) ARISING OUT OF |
172 |
-OR IN RELATION TO THIS AGREEMENT, INCLUDING THE USE OF OR INABILITY TO USE THE |
173 |
-SOFTWARE, EVEN IF INTEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
174 |
-SOME JURISDICTIONS PROHIBIT EXCLUSION OR LIMITATION OF LIABILITY FOR IMPLIED |
175 |
-WARRANTIES OR CONSEQUENTIAL OR INCIDENTAL DAMAGES, SO THE ABOVE LIMITATION MAY |
176 |
-IN PART NOT APPLY TO YOU. THE SOFTWARE LICENSED HEREUNDER IS NOT DESIGNED OR |
177 |
-INTENDED FOR USE IN ANY MEDICAL, LIFE SAVING OR LIFE SUSTAINING SYSTEMS, |
178 |
-TRANSPORTATION SYSTEMS, NUCLEAR SYSTEMS, OR FOR ANY OTHER MISSION CRITICAL |
179 |
-APPLICATION IN WHICH THE FAILURE OF THE SOFTWARE COULD LEAD TO PERSONAL INJURY |
180 |
-OR DEATH. YOU MAY ALSO HAVE OTHER LEGAL RIGHTS THAT VARY FROM JURISDICTION TO |
181 |
-JURISDICTION. THE LIMITED REMEDIES, WARRANTY DISCLAIMER AND LIMITED LIABILITY |
182 |
-ARE FUNDAMENTAL ELEMENTS OF THE BASIS OF THE BARGAIN BETWEEN INTEL AND YOU. YOU |
183 |
-ACKNOWLEDGE INTEL WOULD BE UNABLE TO PROVIDE THE SOFTWARE WITHOUT SUCH |
184 |
-LIMITATIONS. YOU WILL INDEMNIFY AND HOLD INTEL AND ITS AFFILIATES, LICENSORS |
185 |
-AND SUPPLIERS (INCLUDING THEIR RESPECTIVE DIRECTORS, OFFICERS, EMPLOYEES, AND |
186 |
-AGENTS) HARMLESS AGAINST ALL CLAIMS, LIABILITIES, LOSSES, COSTS, DAMAGES, AND |
187 |
-EXPENSES (INCLUDING REASONABLE ATTORNEY FEES), ARISING OUT OF, DIRECTLY OR |
188 |
-INDIRECTLY, THE DISTRIBUTION OF THE SOFTWARE AND ANY CLAIM OF PRODUCT |
189 |
-LIABILITY, PERSONAL INJURY OR DEATH ASSOCIATED WITH ANY UNINTENDED USE, EVEN IF |
190 |
-SUCH CLAIM ALLEGES THAT INTEL OR AN INTEL AFFILIATE, LICENSORS OR SUPPLIER WAS |
191 |
-NEGLIGENT REGARDING THE DESIGN OR MANUFACTURE OF THE SOFTWARE. |
192 |
- |
193 |
-11. TERMINATION AND SURVIVAL. Intel may terminate this Agreement for any reason |
194 |
-with thirty (30) days' notice and immediately if You or someone acting on Your |
195 |
-behalf or at Your behest violates any of its terms or conditions. Upon |
196 |
-termination, You will immediately destroy and ensure the destruction of the |
197 |
-Software or return all copies of the Software to Intel (including providing |
198 |
-certification of such destruction or return back to Intel). Upon termination of |
199 |
-this Agreement, all licenses granted to You hereunder terminate immediately. |
200 |
-All Sections of this Agreement, except Section 2, will survive termination. |
201 |
- |
202 |
-12. GOVERNING LAW AND JURISDICTION. This Agreement and any dispute arising out |
203 |
-of or relating to it will be governed by the laws of the U.S.A. and Delaware, |
204 |
-without regard to conflict of laws principles. The Parties exclude the |
205 |
-application of the United Nations Convention on Contracts for the International |
206 |
-Sale of Goods (1980). The state and federal courts sitting in Delaware, U.S.A. |
207 |
-will have exclusive jurisdiction over any dispute arising out of or relating to |
208 |
-this Agreement. The Parties consent to personal jurisdiction and venue in those |
209 |
-courts. A Party that obtains a judgment against the other Party in the courts |
210 |
-identified in this section may enforce that judgment in any court that has |
211 |
-jurisdiction over the Parties. |
212 |
- |
213 |
-13. EXPORT REGULATIONS/EXPORT CONTROL. You agree that neither You nor Your |
214 |
-subsidiaries will export/re-export the Software, directly or indirectly, to any |
215 |
-country for which the U.S. Department of Commerce or any other agency or |
216 |
-department of the U.S. Government or the foreign government from where it is |
217 |
-shipping requires an export license, or other governmental approval, without |
218 |
-first obtaining any such required license or approval. In the event the |
219 |
-Software is exported from the U.S.A. or re-exported from a foreign destination |
220 |
-by You or Your subsidiary, You will ensure that the distribution and |
221 |
-export/re-export or import of the Software complies with all laws, regulations, |
222 |
-orders, or other restrictions of the U.S. Export Administration Regulations and |
223 |
-the appropriate foreign government. |
224 |
- |
225 |
-14. GOVERNMENT RESTRICTED RIGHTS. The Software is a commercial item (as defined |
226 |
-in 48 C.F.R. 2.101) consisting of commercial computer software and commercial |
227 |
-computer software documentation (as those terms are used in 48 C.F.R. 12.212). |
228 |
-Consistent with 48 C.F.R. 12.212 and 48 C.F.R 227.7202-1 through 227.7202-4, |
229 |
-You will not provide the Software to the U.S. Government. Contractor or |
230 |
-Manufacturer is Intel Corporation, 2200 Mission College Blvd., Santa Clara, CA |
231 |
-95054. |
232 |
- |
233 |
-15. ASSIGNMENT. You may not delegate, assign or transfer this Agreement, the |
234 |
-license(s) granted or any of Your rights or duties hereunder, expressly, by |
235 |
-implication, by operation of law, or otherwise and any attempt to do so, |
236 |
-without Intel's express prior written consent, will be null and void. Intel may |
237 |
-assign, delegate and transfer this Agreement, and its rights and obligations |
238 |
-hereunder, in its sole discretion. |
239 |
- |
240 |
-16. ENTIRE AGREEMENT; SEVERABILITY. The terms and conditions of this Agreement |
241 |
-and any NDA with Intel constitute the entire agreement between the parties with |
242 |
-respect to the subject matter hereof, and merge and supersede all prior or |
243 |
-contemporaneous agreements, understandings, negotiations and discussions. |
244 |
-Neither Party will be bound by any terms, conditions, definitions, warranties, |
245 |
-understandings, or representations with respect to the subject matter hereof |
246 |
-other than as expressly provided herein. In the event any provision of this |
247 |
-Agreement is unenforceable or invalid under any applicable law or applicable |
248 |
-court decision, such unenforceability or invalidity will not render this |
249 |
-Agreement unenforceable or invalid as a whole, instead such provision will be |
250 |
-changed and interpreted so as to best accomplish the objectives of such |
251 |
-provision within legal limits. |
252 |
- |
253 |
-17. WAIVER. The failure of a Party to require performance by the other Party of |
254 |
-any provision hereof will not affect the full right to require such performance |
255 |
-at any time thereafter; nor will waiver by a Party of a breach of any provision |
256 |
-hereof constitute a waiver of the provision itself. |
257 |
- |
258 |
-18. PRIVACY. YOUR PRIVACY RIGHTS ARE SET FORTH IN INTEL'S PRIVACY NOTICE, WHICH |
259 |
-FORMS A PART OF THIS AGREEMENT. PLEASE REVIEW THE PRIVACY NOTICE AT |
260 |
-HTTP://WWW.INTEL.COM/PRIVACY TO LEARN HOW INTEL COLLECTS, USES AND SHARES |
261 |
-INFORMATION ABOUT YOU. |
262 |
- |
263 |
-APPENDIX A |
264 |
-INTEL END USER SOFTWARE LICENSE AGREEMENT |
265 |
- |
266 |
-IMPORTANT - READ BEFORE COPYING, INSTALLING OR USING. |
267 |
-THE FOLLOWING NOTICE, OR TERMS AND CONDITIONS SUBSTANTIALLY IDENTICAL IN NATURE |
268 |
-AND EFFECT, MUST APPEAR IN THE DOCUMENTATION ASSOCIATED WITH THE INTEL-BASED |
269 |
-PRODUCT INTO WHICH THE SOFTWARE IS INSTALLED. MINIMALLY, SUCH NOTICE MUST |
270 |
-APPEAR IN THE USER GUIDE FOR THE PRODUCT. THE TERM "LICENSEE" IN THIS TEXT |
271 |
-REFERS TO THE END USER OF THE PRODUCT. |
272 |
- |
273 |
-LICENSE. Licensee has a license under Intel's copyrights to reproduce Intel's |
274 |
-Software only in its unmodified and binary form, (with the accompanying |
275 |
-documentation, the "Software") for Licensee's personal use only, and not |
276 |
-commercial use, in connection with Intel-based products for which the Software |
277 |
-has been provided, subject to the following conditions: |
278 |
-(a) Licensee may not disclose, distribute or transfer any part of the |
279 |
-Software, and You agree to prevent unauthorized copying of the Software. |
280 |
-(b) Licensee may not reverse engineer, decompile, or disassemble the |
281 |
-Software. |
282 |
-(c) Licensee may not sublicense the Software. |
283 |
-(d) The Software may contain the software and other intellectual property |
284 |
-of third party suppliers, some of which may be identified in, and licensed in |
285 |
-accordance with, an enclosed license.txt file or other text or file. |
286 |
-(e) Intel has no obligation to provide any support, technical assistance or |
287 |
-updates for the Software. |
288 |
- |
289 |
-OWNERSHIP OF SOFTWARE AND COPYRIGHTS. Title to all copies of the Software |
290 |
-remains with Intel or its licensors or suppliers. The Software is copyrighted |
291 |
-and protected by the laws of the United States and other countries, and |
292 |
-international treaty provisions. Licensee may not remove any copyright notices |
293 |
-from the Software. Except as otherwise expressly provided above, Intel grants |
294 |
-no express or implied right under Intel patents, copyrights, trademarks, or |
295 |
-other intellectual property rights. Transfer of the license terminates |
296 |
-Licensee's right to use the Software. |
297 |
-DISCLAIMER OF WARRANTY. The Software is provided "AS IS" without warranty of |
298 |
-any kind, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, WARRANTIES |
299 |
-OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE. |
300 |
- |
301 |
-LIMITATION OF LIABILITY. NEITHER INTEL NOR ITS LICENSORS OR SUPPLIERS WILL BE |
302 |
-LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, INTERRUPTION OF BUSINESS, OR |
303 |
-INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER |
304 |
-UNDER THIS AGREEMENT OR OTHERWISE, EVEN IF INTEL HAS BEEN ADVISED OF THE |
305 |
-POSSIBILITY OF SUCH DAMAGES. |
306 |
- |
307 |
-LICENSE TO USE COMMENTS AND SUGGESTIONS. This Agreement does NOT obligate |
308 |
-Licensee to provide Intel with comments or suggestions regarding the Software. |
309 |
-However, if Licensee provides Intel with comments or suggestions for the |
310 |
-modification, correction, improvement or enhancement of (a) the Software or (b) |
311 |
-Intel products or processes that work with the Software, Licensee grants to |
312 |
-Intel a non-exclusive, worldwide, perpetual, irrevocable, transferable, |
313 |
-royalty-free license, with the right to sublicense, under Licensee's |
314 |
-intellectual property rights, to incorporate or otherwise utilize those |
315 |
-comments and suggestions. |
316 |
- |
317 |
-TERMINATION OF THIS LICENSE. Intel or the sublicensor may terminate this |
318 |
-license at any time if Licensee is in breach of any of its terms or conditions. |
319 |
-Upon termination, Licensee will immediately destroy or return to Intel all |
320 |
-copies of the Software. |
321 |
-THIRD PARTY BENEFICIARY. Intel is an intended beneficiary of the End User |
322 |
-License Agreement and has the right to enforce all of its terms. |
323 |
- |
324 |
-U.S. GOVERNMENT RESTRICTED RIGHTS. The Software is a commercial item (as |
325 |
-defined in 48 C.F.R. 2.101) consisting of commercial computer software and |
326 |
-commercial computer software documentation (as those terms are used in 48 |
327 |
-C.F.R. 12.212), consistent with 48 C.F.R. 12.212 and 48 C.F.R 227.7202-1 |
328 |
-through 227.7202-4. You will not provide the Software to the U.S. Government. |
329 |
-Contractor or Manufacturer is Intel Corporation, 2200 Mission College Blvd., |
330 |
-Santa Clara, CA 95054. |
331 |
- |
332 |
-EXPORT LAWS. Licensee agrees that neither Licensee nor Licensee's subsidiaries |
333 |
-will export/re-export the Software, directly or indirectly, to any country for |
334 |
-which the U.S. Department of Commerce or any other agency or department of the |
335 |
-U.S. Government or the foreign government from where it is shipping requires an |
336 |
-export license, or other governmental approval, without first obtaining any |
337 |
-such required license or approval. In the event the Software is exported from |
338 |
-the U.S.A. or re-exported from a foreign destination by Licensee, Licensee will |
339 |
-ensure that the distribution and export/re-export or import of the Software |
340 |
-complies with all laws, regulations, orders, or other restrictions of the U.S. |
341 |
-Export Administration Regulations and the appropriate foreign government. |
342 |
- |
343 |
-APPLICABLE LAWS. This Agreement and any dispute arising out of or relating to |
344 |
-it will be governed by the laws of the U.S.A. and Delaware, without regard to |
345 |
-conflict of laws principles. The Parties to this Agreement exclude the |
346 |
-application of the United Nations Convention on Contracts for the International |
347 |
-Sale of Goods (1980). The state and federal courts sitting in Delaware, U.S.A. |
348 |
-will have exclusive jurisdiction over any dispute arising out of or relating to |
349 |
-this Agreement. The Parties consent to personal jurisdiction and venue in those |
350 |
-courts. A Party that obtains a judgment against the other Party in the courts |
351 |
-identified in this section may enforce that judgment in any court that has |
352 |
-jurisdiction over the Parties. |
353 |
- |
354 |
-Licensee's specific rights may vary from country to country. |
355 |
- |
356 |
|
357 |
diff --git a/sys-firmware/intel-microcode/Manifest b/sys-firmware/intel-microcode/Manifest |
358 |
index 026eb2bfe9d..242227288ea 100644 |
359 |
--- a/sys-firmware/intel-microcode/Manifest |
360 |
+++ b/sys-firmware/intel-microcode/Manifest |
361 |
@@ -1,3 +1,2 @@ |
362 |
DIST intel-microcode-collection-20180808.tar.xz 4463768 BLAKE2B bf04d00db7e11b7ef6da9b4221aa2dfae1a20a39ab2f99ad78e735c9cf0f1d9a949b81ceba740238da98d34a934d8829b6882714ec21a1ffa3c1a7dfcfbfdcc6 SHA512 e5607127464c71e3ed413ca3b66cde0b5b994d837655208997841ec5358c32bb197f4ad0123b19bae4254aa35770cfec32cf2780f2cb5dd5f0a00d1ca14cf93c |
363 |
-DIST microcode-20180807.tgz 1629357 BLAKE2B ce60ef5a5ba794cb4a618739a6134e3b0a660d5e2a09c39ff1fcd7312a3d0b5e763674fb8f8cd39899544d1136253b98930a0160db9c937135effbb912823b58 SHA512 a69576afb6c8ec401e9e169ee208be7d57ee3292ec6689c783729d3fa624b1fdaa74803874c2afa09768c8ee955da913c2cbabeb3d7c7a1dc1f7965d950ccdfb |
364 |
DIST microcode-20180807a.tgz 1628061 BLAKE2B a6b5a07596a0b1687efb95c207b2194865b2f975cc0d761a687d5b9d8fea63e777eb73373113f356a18592fd53651cf37d044d4e98cdfe6b306393b54ac06129 SHA512 3cd6794a5ce26e86f7b644e523ba978699316046e593da215b73b17c4b43049ac4a81636e2ce3e727d06c2efbac98657764aa3ff355edb429127585bb49a9b10 |
365 |
|
366 |
diff --git a/sys-firmware/intel-microcode/intel-microcode-20180807_p20180808-r2.ebuild b/sys-firmware/intel-microcode/intel-microcode-20180807_p20180808-r2.ebuild |
367 |
deleted file mode 100644 |
368 |
index 5799e35a7cd..00000000000 |
369 |
--- a/sys-firmware/intel-microcode/intel-microcode-20180807_p20180808-r2.ebuild |
370 |
+++ /dev/null |
371 |
@@ -1,214 +0,0 @@ |
372 |
-# Copyright 1999-2018 Gentoo Foundation |
373 |
-# Distributed under the terms of the GNU General Public License v2 |
374 |
- |
375 |
-EAPI="6" |
376 |
- |
377 |
-inherit linux-info toolchain-funcs mount-boot |
378 |
- |
379 |
-# Find updates by searching and clicking the first link (hopefully it's the one): |
380 |
-# https://www.intel.com/content/www/us/en/search.html?keyword=Processor+Microcode+Data+File |
381 |
- |
382 |
-COLLECTION_SNAPSHOT="${PV##*_p}" |
383 |
-INTEL_SNAPSHOT="${PV/_p*}" |
384 |
-NUM="28039" |
385 |
-DESCRIPTION="Intel IA32/IA64 microcode update data" |
386 |
-HOMEPAGE="http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=${NUM}" |
387 |
-SRC_URI="https://downloadmirror.intel.com/${NUM}/eng/microcode-${INTEL_SNAPSHOT}.tgz |
388 |
- https://dev.gentoo.org/~whissi/dist/intel-microcode/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz" |
389 |
- |
390 |
-LICENSE="intel-ucode-20180807" |
391 |
-SLOT="0" |
392 |
-KEYWORDS="-* amd64 x86" |
393 |
-IUSE="hostonly initramfs +split-ucode vanilla" |
394 |
-REQUIRED_USE="|| ( initramfs split-ucode )" |
395 |
- |
396 |
-DEPEND="sys-apps/iucode_tool" |
397 |
- |
398 |
-# !<sys-apps/microcode-ctl-1.17-r2 due to bug #268586 |
399 |
-RDEPEND="!<sys-apps/microcode-ctl-1.17-r2 |
400 |
- hostonly? ( sys-apps/iucode_tool )" |
401 |
- |
402 |
-RESTRICT="binchecks bindist mirror strip" |
403 |
- |
404 |
-S=${WORKDIR} |
405 |
- |
406 |
-# Blacklist bad microcode here. |
407 |
-# 0x000406f1 aka 06-4f-01 aka CPUID 406F1 require newer microcode loader |
408 |
-MICROCODE_BLACKLIST_DEFAULT="-s !0x000406f1" |
409 |
-MICROCODE_BLACKLIST="${MICROCODE_BLACKLIST:=${MICROCODE_BLACKLIST_DEFAULT}}" |
410 |
- |
411 |
-# In case we want to set some defaults ... |
412 |
-MICROCODE_SIGNATURES_DEFAULT="" |
413 |
- |
414 |
-# Advanced users only: |
415 |
-# merge with: |
416 |
-# only current CPU: MICROCODE_SIGNATURES="-S" |
417 |
-# only specific CPU: MICROCODE_SIGNATURES="-s 0x00000f4a -s 0x00010676" |
418 |
-# exclude specific CPU: MICROCODE_SIGNATURES="-s !0x00000686" |
419 |
-MICROCODE_SIGNATURES="${MICROCODE_SIGNATURES:=${MICROCODE_SIGNATURES_DEFAULT}}" |
420 |
- |
421 |
-pkg_pretend() { |
422 |
- if [[ "${MICROCODE_BLACKLIST}" != "${MICROCODE_BLACKLIST_DEFAULT}" ]]; then |
423 |
- ewarn "MICROCODE_BLACKLIST is set to \"${MICROCODE_BLACKLIST}\" instead of default \"${MICROCODE_BLACKLIST_DEFAULT}\". You are on your own!" |
424 |
- fi |
425 |
- |
426 |
- if [[ "${MICROCODE_SIGNATURES}" != "${MICROCODE_SIGNATURES_DEFAULT}" ]]; then |
427 |
- ewarn "The user has opted in for advanced use:" |
428 |
- ewarn "MICROCODE_SIGNATURES is set to \"${MICROCODE_SIGNATURES}\" instead of default \"${MICROCODE_SIGNATURES_DEFAULT}\"!" |
429 |
- fi |
430 |
- |
431 |
- use initramfs && mount-boot_pkg_pretend |
432 |
-} |
433 |
- |
434 |
-src_prepare() { |
435 |
- default |
436 |
- |
437 |
- # Prevent "invalid file format" errors from iucode_tool |
438 |
- rm -f "${S}"/intel-ucod*/list || die |
439 |
-} |
440 |
- |
441 |
-src_install() { |
442 |
- # This will take ALL of the upstream microcode sources: |
443 |
- # - microcode.dat |
444 |
- # - intel-ucode/ |
445 |
- # In some cases, they have not contained the same content (eg the directory has newer stuff). |
446 |
- MICROCODE_SRC=( |
447 |
- "${S}"/intel-ucode/ |
448 |
- "${S}"/intel-ucode-with-caveats/ |
449 |
- ) |
450 |
- |
451 |
- # Allow users who are scared about microcode updates not included in Intel's official |
452 |
- # microcode tarball to opt-out and comply with Intel marketing |
453 |
- if ! use vanilla; then |
454 |
- MICROCODE_SRC+=( "${S}"/intel-microcode-collection-${COLLECTION_SNAPSHOT} ) |
455 |
- fi |
456 |
- |
457 |
- opts=( |
458 |
- ${MICROCODE_BLACKLIST} |
459 |
- ${MICROCODE_SIGNATURES} |
460 |
- # be strict about what we are doing |
461 |
- --overwrite |
462 |
- --strict-checks |
463 |
- --no-ignore-broken |
464 |
- # we want to install latest version |
465 |
- --no-downgrade |
466 |
- # show everything we find |
467 |
- --list-all |
468 |
- # show what we selected |
469 |
- --list |
470 |
- ) |
471 |
- |
472 |
- # The earlyfw cpio needs to be in /boot because it must be loaded before |
473 |
- # rootfs is mounted. |
474 |
- use initramfs && dodir /boot && opts+=( --write-earlyfw="${ED%/}"/boot/intel-uc.img ) |
475 |
- # split location (we use a temporary location so that we are able |
476 |
- # to re-run iucode_tool in pkg_preinst; use keepdir instead of dodir to carry |
477 |
- # this folder to pkg_preinst to avoid an error even if no microcode was selected): |
478 |
- keepdir /tmp/intel-ucode && opts+=( --write-firmware="${ED%/}"/tmp/intel-ucode ) |
479 |
- |
480 |
- iucode_tool \ |
481 |
- "${opts[@]}" \ |
482 |
- "${MICROCODE_SRC[@]}" \ |
483 |
- || die "iucode_tool ${opts[@]} ${MICROCODE_SRC[@]}" |
484 |
- |
485 |
- dodoc releasenote |
486 |
-} |
487 |
- |
488 |
-pkg_preinst() { |
489 |
- use initramfs && mount-boot_pkg_preinst |
490 |
- |
491 |
- if use hostonly; then |
492 |
- einfo "Removing ucode(s) not supported by any currently available (=online) processor(s) due to USE=hostonly ..." |
493 |
- opts=( |
494 |
- --scan-system |
495 |
- # be strict about what we are doing |
496 |
- --overwrite |
497 |
- --strict-checks |
498 |
- --no-ignore-broken |
499 |
- # we want to install latest version |
500 |
- --no-downgrade |
501 |
- # show everything we find |
502 |
- --list-all |
503 |
- # show what we selected |
504 |
- --list |
505 |
- ) |
506 |
- |
507 |
- # The earlyfw cpio needs to be in /boot because it must be loaded before |
508 |
- # rootfs is mounted. |
509 |
- use initramfs && opts+=( --write-earlyfw="${ED%/}"/boot/intel-uc.img ) |
510 |
- # split location: |
511 |
- use split-ucode && dodir /lib/firmware/intel-ucode && opts+=( --write-firmware="${ED%/}"/lib/firmware/intel-ucode ) |
512 |
- |
513 |
- iucode_tool \ |
514 |
- "${opts[@]}" \ |
515 |
- "${ED%/}"/tmp/intel-ucode \ |
516 |
- || die "iucode_tool ${opts[@]} ${ED%/}/tmp/intel-ucode" |
517 |
- |
518 |
- else |
519 |
- if use split-ucode; then |
520 |
- # Temporary /tmp/intel-ucode will become final /lib/firmware/intel-ucode ... |
521 |
- dodir /lib/firmware |
522 |
- mv "${ED%/}/tmp/intel-ucode" "${ED%/}/lib/firmware" || die "Failed to install splitted ucodes!" |
523 |
- fi |
524 |
- fi |
525 |
- |
526 |
- # Cleanup any temporary leftovers so that we don't merge any |
527 |
- # unneeded files on disk |
528 |
- rm -r "${ED%/}/tmp" || die "Failed to cleanup '${ED%/}/tmp'" |
529 |
-} |
530 |
- |
531 |
-pkg_prerm() { |
532 |
- use initramfs && mount-boot_pkg_prerm |
533 |
-} |
534 |
- |
535 |
-pkg_postrm() { |
536 |
- use initramfs && mount-boot_pkg_postrm |
537 |
-} |
538 |
- |
539 |
-pkg_postinst() { |
540 |
- use initramfs && mount-boot_pkg_postinst |
541 |
- |
542 |
- local _has_installed_something= |
543 |
- if use initramfs && [[ -s "${EROOT%/}/boot/intel-uc.img" ]]; then |
544 |
- _has_installed_something="yes" |
545 |
- elif use split-ucode; then |
546 |
- _has_installed_something=$(find "${EROOT%/}/lib/firmware/intel-ucode" -maxdepth 0 -not -empty -exec echo yes \;) |
547 |
- fi |
548 |
- |
549 |
- if use hostonly && [[ -n "${_has_installed_something}" ]]; then |
550 |
- elog "You only installed ucode(s) for all currently available (=online)" |
551 |
- elog "processor(s). Remember to re-emerge this package whenever you" |
552 |
- elog "change the system's processor model." |
553 |
- elog "" |
554 |
- elif [[ -z "${_has_installed_something}" ]]; then |
555 |
- ewarn "WARNING:" |
556 |
- ewarn "No ucode was installed! You can ignore this warning if there" |
557 |
- ewarn "aren't any microcode updates available for your processor(s)." |
558 |
- ewarn "But if you use MICROCODE_SIGNATURES variable please double check" |
559 |
- ewarn "if you have an invalid select." |
560 |
- ewarn "" |
561 |
- |
562 |
- if use hostonly; then |
563 |
- ewarn "Unset \"hostonly\" USE flag to install all available ucodes." |
564 |
- ewarn "" |
565 |
- fi |
566 |
- fi |
567 |
- |
568 |
- # We cannot give detailed information if user is affected or not: |
569 |
- # If MICROCODE_BLACKLIST wasn't modified, user can still use MICROCODE_SIGNATURES |
570 |
- # to to force a specific, otherwise blacklisted, microcode. So we |
571 |
- # only show a generic warning based on running kernel version: |
572 |
- if kernel_is -lt 4 14 34; then |
573 |
- ewarn "${P} contains microcode updates which require" |
574 |
- ewarn "additional kernel patches which aren't yet included in kernel <4.14.34." |
575 |
- ewarn "Loading such a microcode through kernel interface from an unpatched kernel" |
576 |
- ewarn "can crash your system!" |
577 |
- ewarn "" |
578 |
- ewarn "Those microcodes are blacklisted per default. However, if you have altered" |
579 |
- ewarn "MICROCODE_BLACKLIST or MICROCODE_SIGNATURES, you maybe have unintentionally" |
580 |
- ewarn "re-enabled those microcodes...!" |
581 |
- ewarn "" |
582 |
- ewarn "Check \"${EROOT%/}/usr/share/doc/${PN}-*/releasenot*\" if your microcode update" |
583 |
- ewarn "requires additional kernel patches or not." |
584 |
- fi |
585 |
-} |
586 |
|
587 |
diff --git a/sys-firmware/intel-microcode/intel-microcode-20180807_p20180808-r3.ebuild b/sys-firmware/intel-microcode/intel-microcode-20180807_p20180808-r3.ebuild |
588 |
deleted file mode 100644 |
589 |
index be1b43ad752..00000000000 |
590 |
--- a/sys-firmware/intel-microcode/intel-microcode-20180807_p20180808-r3.ebuild |
591 |
+++ /dev/null |
592 |
@@ -1,254 +0,0 @@ |
593 |
-# Copyright 1999-2018 Gentoo Foundation |
594 |
-# Distributed under the terms of the GNU General Public License v2 |
595 |
- |
596 |
-EAPI="6" |
597 |
- |
598 |
-inherit linux-info toolchain-funcs mount-boot |
599 |
- |
600 |
-# Find updates by searching and clicking the first link (hopefully it's the one): |
601 |
-# https://www.intel.com/content/www/us/en/search.html?keyword=Processor+Microcode+Data+File |
602 |
- |
603 |
-COLLECTION_SNAPSHOT="${PV##*_p}" |
604 |
-INTEL_SNAPSHOT="${PV/_p*}" |
605 |
-NUM="28039" |
606 |
-DESCRIPTION="Intel IA32/IA64 microcode update data" |
607 |
-HOMEPAGE="http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=${NUM}" |
608 |
-SRC_URI="https://downloadmirror.intel.com/${NUM}/eng/microcode-${INTEL_SNAPSHOT}.tgz |
609 |
- https://dev.gentoo.org/~whissi/dist/intel-microcode/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz" |
610 |
- |
611 |
-LICENSE="intel-ucode-20180807" |
612 |
-SLOT="0" |
613 |
-KEYWORDS="-* ~amd64 ~x86" |
614 |
-IUSE="hostonly initramfs +split-ucode vanilla" |
615 |
-REQUIRED_USE="|| ( initramfs split-ucode )" |
616 |
- |
617 |
-DEPEND="sys-apps/iucode_tool" |
618 |
- |
619 |
-# !<sys-apps/microcode-ctl-1.17-r2 due to bug #268586 |
620 |
-RDEPEND="!<sys-apps/microcode-ctl-1.17-r2 |
621 |
- hostonly? ( sys-apps/iucode_tool )" |
622 |
- |
623 |
-RESTRICT="binchecks bindist mirror strip" |
624 |
- |
625 |
-S=${WORKDIR} |
626 |
- |
627 |
-# Blacklist bad microcode here. |
628 |
-# 0x000406f1 aka 06-4f-01 aka CPUID 406F1 require newer microcode loader |
629 |
-MICROCODE_BLACKLIST_DEFAULT="-s !0x000406f1" |
630 |
-MICROCODE_BLACKLIST="${MICROCODE_BLACKLIST:=${MICROCODE_BLACKLIST_DEFAULT}}" |
631 |
- |
632 |
-# In case we want to set some defaults ... |
633 |
-MICROCODE_SIGNATURES_DEFAULT="" |
634 |
- |
635 |
-# Advanced users only: |
636 |
-# merge with: |
637 |
-# only current CPU: MICROCODE_SIGNATURES="-S" |
638 |
-# only specific CPU: MICROCODE_SIGNATURES="-s 0x00000f4a -s 0x00010676" |
639 |
-# exclude specific CPU: MICROCODE_SIGNATURES="-s !0x00000686" |
640 |
-MICROCODE_SIGNATURES="${MICROCODE_SIGNATURES:=${MICROCODE_SIGNATURES_DEFAULT}}" |
641 |
- |
642 |
-pkg_pretend() { |
643 |
- use initramfs && mount-boot_pkg_pretend |
644 |
-} |
645 |
- |
646 |
-src_prepare() { |
647 |
- default |
648 |
- |
649 |
- # Prevent "invalid file format" errors from iucode_tool |
650 |
- rm -f "${S}"/intel-ucod*/list || die |
651 |
-} |
652 |
- |
653 |
-src_install() { |
654 |
- # This will take ALL of the upstream microcode sources: |
655 |
- # - microcode.dat |
656 |
- # - intel-ucode/ |
657 |
- # In some cases, they have not contained the same content (eg the directory has newer stuff). |
658 |
- MICROCODE_SRC=( |
659 |
- "${S}"/intel-ucode/ |
660 |
- "${S}"/intel-ucode-with-caveats/ |
661 |
- ) |
662 |
- |
663 |
- # Allow users who are scared about microcode updates not included in Intel's official |
664 |
- # microcode tarball to opt-out and comply with Intel marketing |
665 |
- if ! use vanilla; then |
666 |
- MICROCODE_SRC+=( "${S}"/intel-microcode-collection-${COLLECTION_SNAPSHOT} ) |
667 |
- fi |
668 |
- |
669 |
- opts=( |
670 |
- ${MICROCODE_BLACKLIST} |
671 |
- ${MICROCODE_SIGNATURES} |
672 |
- # be strict about what we are doing |
673 |
- --overwrite |
674 |
- --strict-checks |
675 |
- --no-ignore-broken |
676 |
- # we want to install latest version |
677 |
- --no-downgrade |
678 |
- # show everything we find |
679 |
- --list-all |
680 |
- # show what we selected |
681 |
- --list |
682 |
- ) |
683 |
- |
684 |
- # The earlyfw cpio needs to be in /boot because it must be loaded before |
685 |
- # rootfs is mounted. |
686 |
- use initramfs && dodir /boot && opts+=( --write-earlyfw="${ED%/}"/boot/intel-uc.img ) |
687 |
- # split location (we use a temporary location so that we are able |
688 |
- # to re-run iucode_tool in pkg_preinst; use keepdir instead of dodir to carry |
689 |
- # this folder to pkg_preinst to avoid an error even if no microcode was selected): |
690 |
- keepdir /tmp/intel-ucode && opts+=( --write-firmware="${ED%/}"/tmp/intel-ucode ) |
691 |
- |
692 |
- iucode_tool \ |
693 |
- "${opts[@]}" \ |
694 |
- "${MICROCODE_SRC[@]}" \ |
695 |
- || die "iucode_tool ${opts[@]} ${MICROCODE_SRC[@]}" |
696 |
- |
697 |
- dodoc releasenote |
698 |
- |
699 |
- # Record how package was created so we can show this in build.log |
700 |
- # even for binary packages. |
701 |
- if [[ "${MICROCODE_BLACKLIST}" != "${MICROCODE_BLACKLIST_DEFAULT}" ]]; then |
702 |
- echo ${MICROCODE_BLACKLIST} > "${ED%/}/tmp/.blacklist_altered" || die "Failed to add marker that MICROCODE_BLACKLIST variable was used" |
703 |
- fi |
704 |
- |
705 |
- if [[ "${MICROCODE_SIGNATURES}" != "${MICROCODE_SIGNATURES_DEFAULT}" ]]; then |
706 |
- echo ${MICROCODE_SIGNATURES} > "${ED%/}/tmp/.signatures_altered" || die "Failed to add marker that MICROCODE_SIGNATURES variable was used" |
707 |
- fi |
708 |
-} |
709 |
- |
710 |
-pkg_preinst() { |
711 |
- if [[ -f "${ED%/}/tmp/.blacklist_altered" ]]; then |
712 |
- local _recorded_MICROCODE_BLACKLIST_value=$(cat "${ED%/}/tmp/.blacklist_altered") |
713 |
- ewarn "MICROCODE_BLACKLIST is set to \"${_recorded_MICROCODE_BLACKLIST_value}\" instead of default \"${MICROCODE_BLACKLIST_DEFAULT}\". You are on your own!" |
714 |
- fi |
715 |
- |
716 |
- if [[ -f "${ED%/}/tmp/.signatures_altered" ]]; then |
717 |
- local _recorded_MICROCODE_SIGNATURES_value=$(cat "${ED%/}/tmp/.signatures_altered") |
718 |
- ewarn "Package was created using advanced options:" |
719 |
- ewarn "MICROCODE_SIGNATURES is set to \"${_recorded_MICROCODE_SIGNATURES_value}\" instead of default \"${MICROCODE_SIGNATURES_DEFAULT}\"!" |
720 |
- fi |
721 |
- |
722 |
- # Make sure /boot is available if needed. |
723 |
- use initramfs && mount-boot_pkg_preinst |
724 |
- |
725 |
- local _initramfs_file="${ED%/}/boot/intel-uc.img" |
726 |
- local _ucode_dir="${ED%/}/lib/firmware/intel-ucode" |
727 |
- |
728 |
- if use hostonly; then |
729 |
- # While this output looks redundant we do this check to detect |
730 |
- # rare cases where iucode_tool was unable to detect system's processor(s). |
731 |
- local _detected_processors=$(iucode_tool --scan-system 2>&1) |
732 |
- if [[ -z "${_detected_processors}" ]]; then |
733 |
- ewarn "Looks like iucode_tool was unable to detect any processor!" |
734 |
- else |
735 |
- einfo "Only installing ucode(s) for ${_detected_processors#iucode_tool: system has } due to USE=hostonly ..." |
736 |
- fi |
737 |
- |
738 |
- opts=( |
739 |
- --scan-system |
740 |
- # be strict about what we are doing |
741 |
- --overwrite |
742 |
- --strict-checks |
743 |
- --no-ignore-broken |
744 |
- # we want to install latest version |
745 |
- --no-downgrade |
746 |
- # show everything we find |
747 |
- --list-all |
748 |
- # show what we selected |
749 |
- --list |
750 |
- ) |
751 |
- |
752 |
- # The earlyfw cpio needs to be in /boot because it must be loaded before |
753 |
- # rootfs is mounted. |
754 |
- use initramfs && opts+=( --write-earlyfw=${_initramfs_file} ) |
755 |
- # split location: |
756 |
- use split-ucode && dodir /lib/firmware/intel-ucode && opts+=( --write-firmware=${_ucode_dir} ) |
757 |
- |
758 |
- iucode_tool \ |
759 |
- "${opts[@]}" \ |
760 |
- "${ED%/}"/tmp/intel-ucode \ |
761 |
- || die "iucode_tool ${opts[@]} ${ED%/}/tmp/intel-ucode" |
762 |
- |
763 |
- else |
764 |
- if use split-ucode; then |
765 |
- # Temporary /tmp/intel-ucode will become final /lib/firmware/intel-ucode ... |
766 |
- dodir /lib/firmware |
767 |
- mv "${ED%/}/tmp/intel-ucode" "${ED%/}/lib/firmware" || die "Failed to install splitted ucodes!" |
768 |
- fi |
769 |
- fi |
770 |
- |
771 |
- # Because it is possible that this package will install not one single file |
772 |
- # due to user selection which is still somehow unexpected we add the following |
773 |
- # check to inform user so that the user has at least a chance to detect |
774 |
- # a problem/invalid select. |
775 |
- local _has_installed_something= |
776 |
- if use initramfs && [[ -s "${_initramfs_file}" ]]; then |
777 |
- _has_installed_something="yes" |
778 |
- elif use split-ucode; then |
779 |
- _has_installed_something=$(find "${_ucode_dir}" -maxdepth 0 -not -empty -exec echo yes \;) |
780 |
- fi |
781 |
- |
782 |
- if use hostonly && [[ -n "${_has_installed_something}" ]]; then |
783 |
- elog "You only installed ucode(s) for all currently available (=online)" |
784 |
- elog "processor(s). Remember to re-emerge this package whenever you" |
785 |
- elog "change the system's processor model." |
786 |
- elog "" |
787 |
- elif [[ -z "${_has_installed_something}" ]]; then |
788 |
- ewarn "WARNING:" |
789 |
- if [[ -f "${ED%/}/tmp/.signatures_altered" ]]; then |
790 |
- ewarn "No ucode was installed! Because you have created this package" |
791 |
- ewarn "using MICROCODE_SIGNATURES variable please double check if you" |
792 |
- ewarn "have an invalid select." |
793 |
- ewarn "It's rare but it is also possible that just no ucode update" |
794 |
- ewarn "is available for your processor(s). In this case it is safe" |
795 |
- ewarn "to ignore this warning." |
796 |
- else |
797 |
- ewarn "No ucode was installed! It's rare but it is also possible" |
798 |
- ewarn "that just no ucode update is available for your processor(s)." |
799 |
- ewarn "In this case it is safe to ignore this warning." |
800 |
- fi |
801 |
- |
802 |
- ewarn "" |
803 |
- |
804 |
- if use hostonly; then |
805 |
- ewarn "Unset \"hostonly\" USE flag to install all available ucodes." |
806 |
- ewarn "" |
807 |
- fi |
808 |
- fi |
809 |
- |
810 |
- # Cleanup any temporary leftovers so that we don't merge any |
811 |
- # unneeded files on disk. |
812 |
- rm -r "${ED%/}/tmp" || die "Failed to cleanup '${ED%/}/tmp'" |
813 |
-} |
814 |
- |
815 |
-pkg_prerm() { |
816 |
- # Make sure /boot is mounted so that we can remove /boot/intel-uc.img! |
817 |
- use initramfs && mount-boot_pkg_prerm |
818 |
-} |
819 |
- |
820 |
-pkg_postrm() { |
821 |
- # Don't forget to umount /boot if it was previously mounted by us. |
822 |
- use initramfs && mount-boot_pkg_postrm |
823 |
-} |
824 |
- |
825 |
-pkg_postinst() { |
826 |
- # Don't forget to umount /boot if it was previously mounted by us. |
827 |
- use initramfs && mount-boot_pkg_postinst |
828 |
- |
829 |
- # We cannot give detailed information if user is affected or not: |
830 |
- # If MICROCODE_BLACKLIST wasn't modified, user can still use MICROCODE_SIGNATURES |
831 |
- # to to force a specific, otherwise blacklisted, microcode. So we |
832 |
- # only show a generic warning based on running kernel version: |
833 |
- if kernel_is -lt 4 14 34; then |
834 |
- ewarn "${P} contains microcode updates which require" |
835 |
- ewarn "additional kernel patches which aren't yet included in kernel <4.14.34." |
836 |
- ewarn "Loading such a microcode through kernel interface from an unpatched kernel" |
837 |
- ewarn "can crash your system!" |
838 |
- ewarn "" |
839 |
- ewarn "Those microcodes are blacklisted per default. However, if you have altered" |
840 |
- ewarn "MICROCODE_BLACKLIST or MICROCODE_SIGNATURES, you maybe have unintentionally" |
841 |
- ewarn "re-enabled those microcodes...!" |
842 |
- ewarn "" |
843 |
- ewarn "Check \"${EROOT%/}/usr/share/doc/${PN}-*/releasenot*\" if your microcode update" |
844 |
- ewarn "requires additional kernel patches or not." |
845 |
- fi |
846 |
-} |