intel-microcode: new package
PATCH 1/2 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 <[email protected]>
--- package/Config.in | 1 + package/intel-microcode/Config.in | 7 +++++++ package/intel-microcode/intel-microcode.mk | 25 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 package/intel-microcode/Config.in create mode 100644 package/intel-microcode/intel-microcode.mk
package/Config.in +1 -0
@@ -301,6 +301,7 @@ source "package/hwdata/Config.in" 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"
package/intel-microcode/Config.in new file +7 -0
@@ -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.
package/intel-microcode/intel-microcode.mk new file +25 -0
@@ -0,0 +1,25 @@ +################################################################################ +# +# 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_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))
Signature · 1 line
1.8.5.3
PATCH 2/2 iucode-tools: new package
iucode_tool is a program to manipulate Intel? X86 and X86-64 processor microcode collections, and to use the kernel facilities to upgrade the microcode on Intel system processors.
It was originally sent by Richard Braun <[email protected]>
--- package/Config.in | 1 + package/iucode-tool/Config.in | 8 ++++++++ package/iucode-tool/S00iucode-tool | 23 +++++++++++++++++++++++ package/iucode-tool/iucode-tool.mk | 19 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 package/iucode-tool/Config.in create mode 100644 package/iucode-tool/S00iucode-tool create mode 100644 package/iucode-tool/iucode-tool.mk
package/Config.in +1 -0
@@ -304,6 +304,7 @@ 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/iucode-tool/Config.in" source "package/kbd/Config.in" source "package/lcdproc/Config.in" source "package/lm-sensors/Config.in"
package/iucode-tool/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_IUCODE_TOOL + bool "iucode-tool" + depends on BR2_x86_64 || BR2_i386 + select BR2_PACKAGE_INTEL_MICROCODE + help + Intel processor microcode tool + + http://packages.debian.org/source/sid/iucode-tool
package/iucode-tool/S00iucode-tool new file +23 -0
@@ -0,0 +1,23 @@ +#!/bin/sh +# +# Upload microcode into the processor. +# + +microcode_file="/usr/share/misc/intel-microcode.dat" + +case "$1" in + start) + echo "Starting iucode-tool:" + /usr/sbin/iucode_tool -k $microcode_file + echo "done" + ;; + stop) + ;; + restart|reload) + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $?
package/iucode-tool/iucode-tool.mk new file +19 -0
@@ -0,0 +1,19 @@ +################################################################################ +# +# iucode-tool +# +################################################################################ + +IUCODE_TOOL_VERSION = v1.0.1 +IUCODE_TOOL_SITE = git://git.debian.org/users/hmh/iucode-tool.git +IUCODE_TOOL_AUTORECONF = YES +IUCODE_TOOL_LICENSE = GPLv2+ +IUCODE_TOOL_LICENSE_FILES = COPYING + +define IUCODE_TOOL_INSTALL_INIT_SYSV + [ -f $(TARGET_DIR)/etc/init.d/S00iucode-tool ] || \ + $(INSTALL) -D -m 0755 package/iucode-tool/S00iucode-tool \ + $(TARGET_DIR)/etc/init.d/S00iucode-tool +endef + +$(eval $(autotools-package))
Signature · 1 line
1.8.5.3
PATCH 2/2 iucode-tools: new package
Quoted 37 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Maxime" == Maxime Hadjinlian <[email protected]> writes:
iucode_toolis a program to manipulate Intel? X86 and X86-64 processor microcode collections, and to use the kernel facilities to upgrade the microcode on Intel system processors.
It was originally sent by Richard Braun <[email protected]>Signed-off-by Maxime Hadjinlian <[email protected]>Cc Richard Braun <[email protected]>--- package/Config.in | 1 + package/iucode-tool/Config.in | 8 ++++++++ package/iucode-tool/S00iucode-tool | 23 +++++++++++++++++++++++ package/iucode-tool/iucode-tool.mk | 19 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 package/iucode-tool/Config.in create mode 100644 package/iucode-tool/S00iucode-tool create mode 100644 package/iucode-tool/iucode-tool.mkpackage/Config.in +1
-0@@ -304,6 +304,7 @@ 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/iucode-tool/Config.in" source "package/kbd/Config.in" source "package/lcdproc/Config.in" source "package/lm-sensors/Config.in"package/iucode-tool/Config.in new file +0
-0
package/iucode-tool/Config.in line 8
Quoted 8 lines
package/iucode-tool/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_IUCODE_TOOL + bool "iucode-tool" + depends on BR2_x86_64 || BR2_i386 + select BR2_PACKAGE_INTEL_MICROCODE + help + Intel processor microcode tool + + http://packages.debian.org/source/sid/iucode-tool
I've dropped the 'sid' part of the upstream URL and committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 intel-microcode: new package
In reply to Maxime HadjinlianQuoted 54 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Maxime" == Maxime Hadjinlian <[email protected]> writes:
The intel microcode is a proprietary package which provides a data file used to correct processors errors.
It was originally sent by Richard Braun <[email protected]>Signed-off-by Maxime Hadjinlian <[email protected]>Cc Richard Braun <[email protected]>--- package/Config.in | 1 + package/intel-microcode/Config.in | 7 +++++++ package/intel-microcode/intel-microcode.mk | 25 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 package/intel-microcode/Config.in create mode 100644 package/intel-microcode/intel-microcode.mkpackage/Config.in +1
-0@@ -301,6 +301,7 @@ source "package/hwdata/Config.in" 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"package/intel-microcode/Config.in new file +7
-0@@ -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.package/intel-microcode/intel-microcode.mk new file +7
-0@@ -0,0 +1,25 @@ +################################################################################ +# +# intel-microcode +# +################################################################################ + +INTEL_MICROCODE_VERSION = 20140122
package/intel-microcode/intel-microcode.mk line 17
Quoted 10 lines
package/intel-microcode/intel-microcode.mk new file +10
-0+INTEL_MICROCODE_SOURCE = microcode-$(INTEL_MICROCODE_VERSION).tgz +INTEL_MICROCODE_SITE = http://downloadmirror.intel.com/23574/eng +INTEL_MICROCODE_LICENSE = PROPRIETARY +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
We should also set INTEL_MICROCODE_LICENSE_FILES, otherwise it doesn't make much sense to create it.
Committed with that fixed, thanks.
Signature · 1 line
Bye, Peter Korsgaard