[Lunar-commits] <moonbase> amd-ucode: microcode for AMD cpus

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sat Dec 31 15:18:02 CET 2011


commit d3675c86742ec714622b2e8e0fa17f84012d5356
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sat Dec 31 15:18:02 2011 +0100

    amd-ucode: microcode for AMD cpus
---
 utils/amd-ucode/BUILD                       |    7 +++++++
 utils/amd-ucode/DETAILS                     |   17 +++++++++++++++++
 utils/amd-ucode/systemd.d/microcode.service |   11 +++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/utils/amd-ucode/BUILD b/utils/amd-ucode/BUILD
new file mode 100644
index 0000000..1b00727
--- /dev/null
+++ b/utils/amd-ucode/BUILD
@@ -0,0 +1,7 @@
+(
+
+   prepare_install &&
+   mkdir -p /lib/firmware/amd-ucode &&
+   install -m644 microcode_amd.bin /lib/firmware/amd-ucode/
+
+) > $C_FIFO 2>&1
diff --git a/utils/amd-ucode/DETAILS b/utils/amd-ucode/DETAILS
new file mode 100644
index 0000000..24fdd8f
--- /dev/null
+++ b/utils/amd-ucode/DETAILS
@@ -0,0 +1,17 @@
+          MODULE=amd-ucode
+         VERSION=2011-01-11
+          SOURCE=$MODULE-$VERSION.tar
+      SOURCE_URL=http://www.amd64.org/pub/microcode
+      SOURCE_VFY=sha1:942b1ff9802aeec8ee9d28c0ece459648442fc8d
+        WEB_SITE=http://www.amd64.org/support/microcode.html
+         ENTERED=20111231
+         UPDATED=20111231
+           SHORT="AMD microcode - data files"
+
+cat << EOF
+The microcode data file contains the latest microcode definitions for
+all AMD processors. AMD releases microcode updates to correct
+processor behavior. While the regular approach to getting this
+microcode update is via a BIOS upgrade, AMD realizes that this can be
+an administrative hassle.
+EOF
diff --git a/utils/amd-ucode/systemd.d/microcode.service b/utils/amd-ucode/systemd.d/microcode.service
new file mode 100644
index 0000000..15467de
--- /dev/null
+++ b/utils/amd-ucode/systemd.d/microcode.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Apply CPU microcode
+
+[Service]
+ExecStart=/usr/sbin/microcode_ctl -qu
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=default.target
+


More information about the Lunar-commits mailing list