diff options
Diffstat (limited to 'common/recipes-core/microcode')
-rw-r--r-- | common/recipes-core/microcode/intel-microcode_20140624.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/common/recipes-core/microcode/intel-microcode_20140624.bb b/common/recipes-core/microcode/intel-microcode_20140624.bb new file mode 100644 index 00000000..b01d8a52 --- /dev/null +++ b/common/recipes-core/microcode/intel-microcode_20140624.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | SUMMARY = "Intel Processor Microcode Datafile for Linux" | ||
2 | HOMEPAGE = "http://www.intel.com/" | ||
3 | DESCRIPTION = "The microcode data file contains the latest microcode\ | ||
4 | definitions for all Intel processors. Intel releases microcode updates\ | ||
5 | to correct processor behavior as documented in the respective processor\ | ||
6 | specification updates. While the regular approach to getting this microcode\ | ||
7 | update is via a BIOS upgrade, Intel realizes that this can be an\ | ||
8 | administrative hassle. The Linux operating system and VMware ESX\ | ||
9 | products have a mechanism to update the microcode after booting.\ | ||
10 | For example, this file will be used by the operating system mechanism\ | ||
11 | if the file is placed in the /etc/firmware directory of the Linux system." | ||
12 | |||
13 | LICENSE = "Intel-Microcode-License" | ||
14 | LIC_FILES_CHKSUM = "file://microcode.dat;md5=3c3b208607a00a3d70aad3af5629f7c7" | ||
15 | |||
16 | SRC_URI = "http://downloadmirror.intel.com/23984/eng/microcode-20140624.tgz" | ||
17 | SRC_URI[md5sum] = "eec20032e6bef99dc4282c0ca317e100" | ||
18 | SRC_URI[sha256sum] = "b4662ac780438a7b2d87e6d26a7066feb807f37c6e5b6fa147089f4edb02ea37" | ||
19 | |||
20 | DEPENDS = "iucode-tool-native" | ||
21 | S = "${WORKDIR}" | ||
22 | |||
23 | inherit allarch | ||
24 | inherit deploy | ||
25 | |||
26 | do_compile() { | ||
27 | mkdir -p ${WORKDIR}/ucode/kernel/x86/microcode | ||
28 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool --overwrite --write-to=${WORKDIR}/microcode_${PV}.bin ${WORKDIR}/microcode.dat | ||
29 | |||
30 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool --overwrite --write-earlyfw=${WORKDIR}/microcode_${PV}.cpio ${WORKDIR}/microcode.dat | ||
31 | } | ||
32 | |||
33 | do_install() { | ||
34 | install -d ${D}${base_libdir}/firmware/intel-ucode/ | ||
35 | install ${WORKDIR}/microcode_${PV}.bin ${D}${base_libdir}/firmware/intel-ucode/ | ||
36 | cd ${D}${base_libdir}/firmware/intel-ucode/ | ||
37 | ln -sf microcode_${PV}.bin microcode.bin | ||
38 | } | ||
39 | |||
40 | do_deploy() { | ||
41 | install -d ${DEPLOYDIR} | ||
42 | install ${S}/microcode_${PV}.cpio ${DEPLOYDIR}/ | ||
43 | cd ${DEPLOYDIR} | ||
44 | rm -f microcode.cpio | ||
45 | ln -sf microcode_${PV}.cpio microcode.cpio | ||
46 | } | ||
47 | |||
48 | addtask deploy before do_build after do_compile | ||
49 | |||
50 | PACKAGES = "${PN}" | ||
51 | |||
52 | FILES_${PN} = "${base_libdir}" | ||