diff options
Diffstat (limited to 'recipes-core/microcode')
-rw-r--r-- | recipes-core/microcode/files/Intel-Microcode-License | 123 | ||||
-rw-r--r-- | recipes-core/microcode/intel-microcode_20240312.bb (renamed from recipes-core/microcode/intel-microcode_20180807.bb) | 35 | ||||
-rw-r--r-- | recipes-core/microcode/iucode-tool_2.3.1.bb | 6 |
3 files changed, 18 insertions, 146 deletions
diff --git a/recipes-core/microcode/files/Intel-Microcode-License b/recipes-core/microcode/files/Intel-Microcode-License deleted file mode 100644 index af5b41c2..00000000 --- a/recipes-core/microcode/files/Intel-Microcode-License +++ /dev/null | |||
@@ -1,123 +0,0 @@ | |||
1 | INTEL SOFTWARE LICENSE AGREEMENT | ||
2 | |||
3 | IMPORTANT - READ BEFORE COPYING, INSTALLING OR USING. | ||
4 | Do not use or load this software and any associated materials (collectively, | ||
5 | the "Software") until you have carefully read the following terms and | ||
6 | conditions. By loading or using the Software, you agree to the terms of this | ||
7 | Agreement. If you do not wish to so agree, do not install or use the Software. | ||
8 | |||
9 | LICENSES: Please Note: | ||
10 | - If you are a network administrator, the "Site License" below shall | ||
11 | apply to you. | ||
12 | - If you are an end user, the "Single User License" shall apply to you. | ||
13 | - If you are an original equipment manufacturer (OEM), the "OEM License" | ||
14 | shall apply to you. | ||
15 | |||
16 | SITE LICENSE. You may copy the Software onto your organization's computers | ||
17 | for your organization's use, and you may make a reasonable number of | ||
18 | back-up copies of the Software, subject to these conditions: | ||
19 | |||
20 | 1. This Software is licensed for use only in conjunction with Intel | ||
21 | component products. Use of the Software in conjunction with non-Intel | ||
22 | component products is not licensed hereunder. | ||
23 | 2. You may not copy, modify, rent, sell, distribute or transfer any part | ||
24 | of the Software except as provided in this Agreement, and you agree to | ||
25 | prevent unauthorized copying of the Software. | ||
26 | 3. You may not reverse engineer, decompile, or disassemble the Software. | ||
27 | 4. You may not sublicense or permit simultaneous use of the Software by | ||
28 | more than one user. | ||
29 | 5. The Software may include portions offered on terms in addition to those | ||
30 | set out here, as set out in a license accompanying those portions. | ||
31 | |||
32 | SINGLE USER LICENSE. You may copy the Software onto a single computer for | ||
33 | your personal, noncommercial use, and you may make one back-up copy of the | ||
34 | Software, subject to these conditions: | ||
35 | |||
36 | 1. This Software is licensed for use only in conjunction with Intel | ||
37 | component products. Use of the Software in conjunction with non-Intel | ||
38 | component products is not licensed hereunder. | ||
39 | 2. You may not copy, modify, rent, sell, distribute or transfer any part | ||
40 | of the Software except as provided in this Agreement, and you agree to | ||
41 | prevent unauthorized copying of the Software. | ||
42 | 3. You may not reverse engineer, decompile, or disassemble the Software. | ||
43 | 4. You may not sublicense or permit simultaneous use of the Software by | ||
44 | more than one user. | ||
45 | 5. The Software may include portions offered on terms in addition to those | ||
46 | set out here, as set out in a license accompanying those portions. | ||
47 | |||
48 | OEM LICENSE: You may reproduce and distribute the Software only as an | ||
49 | integral part of or incorporated in Your product or as a standalone | ||
50 | Software maintenance update for existing end users of Your products, | ||
51 | excluding any other standalone products, subject to these conditions: | ||
52 | |||
53 | 1. This Software is licensed for use only in conjunction with Intel | ||
54 | component products. Use of the Software in conjunction with non-Intel | ||
55 | component products is not licensed hereunder. | ||
56 | 2. You may not copy, modify, rent, sell, distribute or transfer any part | ||
57 | of the Software except as provided in this Agreement, and you agree to | ||
58 | prevent unauthorized copying of the Software. | ||
59 | 3. You may not reverse engineer, decompile, or disassemble the Software. | ||
60 | 4. You may only distribute the Software to your customers pursuant to a | ||
61 | written license agreement. Such license agreement may be a "break-the- | ||
62 | seal" license agreement. At a minimum such license shall safeguard | ||
63 | Intel's ownership rights to the Software. | ||
64 | 5. The Software may include portions offered on terms in addition to those | ||
65 | set out here, as set out in a license accompanying those portions. | ||
66 | |||
67 | NO OTHER RIGHTS. No rights or licenses are granted by Intel to You, expressly | ||
68 | or by implication, with respect to any proprietary information or patent, | ||
69 | copyright, mask work, trademark, trade secret, or other intellectual property | ||
70 | right owned or controlled by Intel, except as expressly provided in this | ||
71 | Agreement. | ||
72 | |||
73 | OWNERSHIP OF SOFTWARE AND COPYRIGHTS. Title to all copies of the Software | ||
74 | remains with Intel or its suppliers. The Software is copyrighted and | ||
75 | protected by the laws of the United States and other countries, and | ||
76 | international treaty provisions. You may not remove any copyright notices | ||
77 | from the Software. Intel may make changes to the Software, or to items | ||
78 | referenced therein, at any time without notice, but is not obligated to | ||
79 | support or update the Software. Except as otherwise expressly provided, Intel | ||
80 | grants no express or implied right under Intel patents, copyrights, | ||
81 | trademarks, or other intellectual property rights. You may transfer the | ||
82 | Software only if the recipient agrees to be fully bound by these terms and if | ||
83 | you retain no copies of the Software. | ||
84 | |||
85 | LIMITED MEDIA WARRANTY. If the Software has been delivered by Intel on | ||
86 | physical media, Intel warrants the media to be free from material physical | ||
87 | defects for a period of ninety days after delivery by Intel. If such a defect | ||
88 | is found, return the media to Intel for replacement or alternate delivery of | ||
89 | the Software as Intel may select. | ||
90 | |||
91 | EXCLUSION OF OTHER WARRANTIES. EXCEPT AS PROVIDED ABOVE, THE SOFTWARE IS | ||
92 | PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND | ||
93 | INCLUDING WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A | ||
94 | PARTICULAR PURPOSE. Intel does not warrant or assume responsibility for the | ||
95 | accuracy or completeness of any information, text, graphics, links or other | ||
96 | items contained within the Software. | ||
97 | |||
98 | LIMITATION OF LIABILITY. IN NO EVENT SHALL INTEL OR ITS SUPPLIERS BE LIABLE | ||
99 | FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, LOST PROFITS, | ||
100 | BUSINESS INTERRUPTION, OR LOST INFORMATION) ARISING OUT OF THE USE OF OR | ||
101 | INABILITY TO USE THE SOFTWARE, EVEN IF INTEL HAS BEEN ADVISED OF THE | ||
102 | POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS PROHIBIT EXCLUSION OR | ||
103 | LIMITATION OF LIABILITY FOR IMPLIED WARRANTIES OR CONSEQUENTIAL OR INCIDENTAL | ||
104 | DAMAGES, SO THE ABOVE LIMITATION MAY NOT APPLY TO YOU. YOU MAY ALSO HAVE | ||
105 | OTHER LEGAL RIGHTS THAT VARY FROM JURISDICTION TO JURISDICTION. | ||
106 | |||
107 | TERMINATION OF THIS AGREEMENT. Intel may terminate this Agreement at any time | ||
108 | if you violate its terms. Upon termination, you will immediately destroy the | ||
109 | Software or return all copies of the Software to Intel. | ||
110 | |||
111 | APPLICABLE LAWS. Claims arising under this Agreement shall be governed by the | ||
112 | laws of California, excluding its principles of conflict of laws and the | ||
113 | United Nations Convention on Contracts for the Sale of Goods. You may not | ||
114 | export the Software in violation of applicable export laws and regulations. | ||
115 | Intel is not obligated under any other agreements unless they are in writing | ||
116 | and signed by an authorized representative of Intel. | ||
117 | |||
118 | GOVERNMENT RESTRICTED RIGHTS. The Software is provided with "RESTRICTED | ||
119 | RIGHTS." Use, duplication, or disclosure by the Government is subject to | ||
120 | restrictions as set forth in FAR52.227-14 and DFAR252.227-7013 et seq. or its | ||
121 | successor. Use of the Software by the Government constitutes acknowledgment | ||
122 | of Intel's proprietary rights therein. Contractor or Manufacturer is Intel | ||
123 | 2200 Mission College Blvd., Santa Clara, CA 95052. | ||
diff --git a/recipes-core/microcode/intel-microcode_20180807.bb b/recipes-core/microcode/intel-microcode_20240312.bb index 02601250..00b18231 100644 --- a/recipes-core/microcode/intel-microcode_20180807.bb +++ b/recipes-core/microcode/intel-microcode_20240312.bb | |||
@@ -11,16 +11,15 @@ DESCRIPTION = "The microcode data file contains the latest microcode\ | |||
11 | if the file is placed in the /etc/firmware directory of the Linux system." | 11 | if the file is placed in the /etc/firmware directory of the Linux system." |
12 | 12 | ||
13 | LICENSE = "Intel-Microcode-License" | 13 | LICENSE = "Intel-Microcode-License" |
14 | LIC_FILES_CHKSUM = "file://Intel-Microcode-License;md5=9052c0dbf7250dc0bef70bd8212b0573" | 14 | LIC_FILES_CHKSUM = "file://license;md5=d8405101ec6e90c1d84b082b0c40c721" |
15 | 15 | ||
16 | SRC_URI = "https://downloadmirror.intel.com/28039/eng/microcode-${PV}.tgz \ | 16 | SRC_URI = "git://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git;protocol=https;branch=main \ |
17 | file://Intel-Microcode-License \ | ||
18 | " | 17 | " |
19 | 18 | ||
20 | SRC_URI[md5sum] = "49f534f1079d3c5bc178a150c1c105aa" | 19 | SRCREV = "41af34500598418150aa298bb04e7edacc547897" |
21 | SRC_URI[sha256sum] = "29f9e8dc27e6c9b6488cecd7fe2394030307799e511db2d197d9e6553a7f9e40" | 20 | |
22 | DEPENDS = "iucode-tool-native" | 21 | DEPENDS = "iucode-tool-native" |
23 | S = "${WORKDIR}" | 22 | S = "${WORKDIR}/git" |
24 | 23 | ||
25 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | 24 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" |
26 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 25 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
@@ -32,30 +31,24 @@ inherit deploy | |||
32 | UCODE_FILTER_PARAMETERS ?= "" | 31 | UCODE_FILTER_PARAMETERS ?= "" |
33 | 32 | ||
34 | do_compile() { | 33 | do_compile() { |
35 | rm -f ${WORKDIR}/intel-ucode/list | ||
36 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | ||
37 | ${UCODE_FILTER_PARAMETERS} \ | ||
38 | --overwrite \ | ||
39 | --write-to=${WORKDIR}/microcode_${PV}.bin \ | ||
40 | ${WORKDIR}/intel-ucode/* | ||
41 | |||
42 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | 34 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ |
43 | ${UCODE_FILTER_PARAMETERS} \ | 35 | ${UCODE_FILTER_PARAMETERS} \ |
44 | --overwrite \ | 36 | --overwrite \ |
45 | --write-earlyfw=${WORKDIR}/microcode_${PV}.cpio \ | 37 | --write-earlyfw=${WORKDIR}/microcode_${PV}.cpio \ |
46 | ${WORKDIR}/intel-ucode/* | 38 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* |
47 | } | 39 | } |
48 | 40 | ||
49 | do_install() { | 41 | do_install() { |
50 | install -d ${D}${base_libdir}/firmware/intel-ucode/ | 42 | install -d ${D}${nonarch_base_libdir}/firmware/intel-ucode/ |
51 | install ${WORKDIR}/microcode_${PV}.bin ${D}${base_libdir}/firmware/intel-ucode/ | 43 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ |
52 | cd ${D}${base_libdir}/firmware/intel-ucode/ | 44 | ${UCODE_FILTER_PARAMETERS} \ |
53 | ln -sf microcode_${PV}.bin microcode.bin | 45 | --write-firmware=${D}${nonarch_base_libdir}/firmware/intel-ucode \ |
46 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* | ||
54 | } | 47 | } |
55 | 48 | ||
56 | do_deploy() { | 49 | do_deploy() { |
57 | install -d ${DEPLOYDIR} | 50 | install -d ${DEPLOYDIR} |
58 | install ${S}/microcode_${PV}.cpio ${DEPLOYDIR}/ | 51 | install ${WORKDIR}/microcode_${PV}.cpio ${DEPLOYDIR}/ |
59 | cd ${DEPLOYDIR} | 52 | cd ${DEPLOYDIR} |
60 | rm -f microcode.cpio | 53 | rm -f microcode.cpio |
61 | ln -sf microcode_${PV}.cpio microcode.cpio | 54 | ln -sf microcode_${PV}.cpio microcode.cpio |
@@ -65,4 +58,6 @@ addtask deploy before do_build after do_compile | |||
65 | 58 | ||
66 | PACKAGES = "${PN}" | 59 | PACKAGES = "${PN}" |
67 | 60 | ||
68 | FILES_${PN} = "${base_libdir}" | 61 | FILES:${PN} = "${nonarch_base_libdir}" |
62 | |||
63 | UPSTREAM_CHECK_GITTAGREGEX = "^microcode-(?P<pver>(\d+)[a-z]*)$" | ||
diff --git a/recipes-core/microcode/iucode-tool_2.3.1.bb b/recipes-core/microcode/iucode-tool_2.3.1.bb index df74a8e9..19417b7c 100644 --- a/recipes-core/microcode/iucode-tool_2.3.1.bb +++ b/recipes-core/microcode/iucode-tool_2.3.1.bb | |||
@@ -12,14 +12,14 @@ DESCRIPTION = "iucode_tool is a program to manipulate Intel i686 and X86-64\ | |||
12 | HOMEPAGE = "https://gitlab.com/iucode-tool/" | 12 | HOMEPAGE = "https://gitlab.com/iucode-tool/" |
13 | BUGTRACKER = "https://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=iucode-tool;repeatmerged=0" | 13 | BUGTRACKER = "https://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=iucode-tool;repeatmerged=0" |
14 | 14 | ||
15 | LICENSE = "GPLv2+" | 15 | LICENSE = "GPL-2.0-or-later" |
16 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | 16 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ |
17 | file://iucode_tool.c;beginline=1;endline=15;md5=71eeab3190360ff0267101b570874756" | 17 | file://iucode_tool.c;beginline=1;endline=15;md5=71eeab3190360ff0267101b570874756" |
18 | 18 | ||
19 | DEPENDS_append_libc-musl = " argp-standalone" | 19 | DEPENDS:append:libc-musl = " argp-standalone" |
20 | 20 | ||
21 | SRC_URI = "https://gitlab.com/iucode-tool/releases/raw/master/iucode-tool_${PV}.tar.xz" | 21 | SRC_URI = "https://gitlab.com/iucode-tool/releases/raw/master/iucode-tool_${PV}.tar.xz" |
22 | SRC_URI_append_libc-musl = " file://0001-Makefile.am-Add-arg-parse-library-for-MUSL-support.patch" | 22 | SRC_URI:append:libc-musl = " file://0001-Makefile.am-Add-arg-parse-library-for-MUSL-support.patch" |
23 | 23 | ||
24 | SRC_URI[md5sum] = "63b33cc0ea1f8c73b443412abbf39d6f" | 24 | SRC_URI[md5sum] = "63b33cc0ea1f8c73b443412abbf39d6f" |
25 | SRC_URI[sha256sum] = "12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95" | 25 | SRC_URI[sha256sum] = "12b88efa4d0d95af08db05a50b3dcb217c0eb2bfc67b483779e33d498ddb2f95" |