aboutsummaryrefslogtreecommitdiff
path: root/package/intel-microcode
diff options
context:
space:
mode:
authorGravatar Maxime Hadjinlian <maxime.hadjinlian@gmail.com>2014-02-04 10:25:57 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-02-04 11:55:30 +0100
commitee8f0ecfbcd0deb2f02a7f2dbd9e94af9ad4d8fe (patch)
tree01fdf4878ad04901a3b8f1617033eab34c6f6a91 /package/intel-microcode
parent1e7602327a318540cb92efd14b8cb092a4ab19bd (diff)
downloadbuildroot-ee8f0ecfbcd0deb2f02a7f2dbd9e94af9ad4d8fe.tar.gz
buildroot-ee8f0ecfbcd0deb2f02a7f2dbd9e94af9ad4d8fe.tar.bz2
intel-microcode: new package
The intel microcode is a proprietary package which provides a data file used to correct processors errors. It was originally sent by Richard Braun <rbraun@sceen.net> [Peter: set _LICENSE_FILES] Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Richard Braun <rbraun@sceen.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/intel-microcode')
-rw-r--r--package/intel-microcode/Config.in7
-rw-r--r--package/intel-microcode/intel-microcode.mk26
2 files changed, 33 insertions, 0 deletions
diff --git a/package/intel-microcode/Config.in b/package/intel-microcode/Config.in
new file mode 100644
index 0000000000..495ebd727f
--- /dev/null
+++ b/package/intel-microcode/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_INTEL_MICROCODE
+ bool "intel-microcode"
+ depends on BR2_x86_64 || BR2_i386
+ help
+ This package provides an Intel microcode data file that can be
+ used to correct processor errors. The iucode-tool package and
+ proper kernel support are required to upload the microcode.
diff --git a/package/intel-microcode/intel-microcode.mk b/package/intel-microcode/intel-microcode.mk
new file mode 100644
index 0000000000..bae953da98
--- /dev/null
+++ b/package/intel-microcode/intel-microcode.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# intel-microcode
+#
+################################################################################
+
+INTEL_MICROCODE_VERSION = 20140122
+INTEL_MICROCODE_SOURCE = microcode-$(INTEL_MICROCODE_VERSION).tgz
+INTEL_MICROCODE_SITE = http://downloadmirror.intel.com/23574/eng
+INTEL_MICROCODE_LICENSE = PROPRIETARY
+INTEL_MICROCODE_LICENSE_FILES = license.txt
+INTEL_MICROCODE_REDISTRIBUTE = NO
+
+# N.B. Don't strip any path components during extraction.
+define INTEL_MICROCODE_EXTRACT_CMDS
+ gzip -d -c $(DL_DIR)/$(INTEL_MICROCODE_SOURCE) | \
+ tar --strip-components=0 -C $(@D) -xf -
+ head -n 33 $(@D)/microcode.dat > $(@D)/license.txt
+endef
+
+define INTEL_MICROCODE_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 0644 $(@D)/microcode.dat \
+ $(TARGET_DIR)/usr/share/misc/intel-microcode.dat
+endef
+
+$(eval $(generic-package))