source "package/i2c-tools/Config.in"
source "package/input-event-daemon/Config.in"
source "package/input-tools/Config.in"
+source "package/intel-microcode/Config.in"
source "package/iostat/Config.in"
source "package/irda-utils/Config.in"
source "package/kbd/Config.in"
--- /dev/null
+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.
--- /dev/null
+################################################################################
+#
+# 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))