summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2012-10-24 18:28:15 +0000
committerRick Farina <zerochaos@gentoo.org>2012-10-24 18:28:15 +0000
commit9a25b6686f4f1477f8bb03571dcb73304da0e800 (patch)
tree7d3ed377fa7e6ae8ec30b5033511571b5bf2bbd0 /sys-firmware
parentVersion bump, bug 439492 (diff)
downloadgentoo-2-9a25b6686f4f1477f8bb03571dcb73304da0e800.tar.gz
gentoo-2-9a25b6686f4f1477f8bb03571dcb73304da0e800.tar.bz2
gentoo-2-9a25b6686f4f1477f8bb03571dcb73304da0e800.zip
bump
(Portage version: 2.1.11.29/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
Diffstat (limited to 'sys-firmware')
-rw-r--r--sys-firmware/amd-ucode/ChangeLog8
-rw-r--r--sys-firmware/amd-ucode/amd-ucode-2012.09.10.ebuild76
2 files changed, 82 insertions, 2 deletions
diff --git a/sys-firmware/amd-ucode/ChangeLog b/sys-firmware/amd-ucode/ChangeLog
index 0c1ea7d06232..103fd9017a4e 100644
--- a/sys-firmware/amd-ucode/ChangeLog
+++ b/sys-firmware/amd-ucode/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-firmware/amd-ucode
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-firmware/amd-ucode/ChangeLog,v 1.1 2012/07/26 04:03:41 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-firmware/amd-ucode/ChangeLog,v 1.2 2012/10/24 18:28:15 zerochaos Exp $
+
+*amd-ucode-2012.09.10 (24 Oct 2012)
+
+ 24 Oct 2012; Rick Farina <zerochaos@gentoo.org> +amd-ucode-2012.09.10.ebuild:
+ bump
*amd-ucode-2012.01.17 (17 Jan 2012)
@@ -22,4 +27,3 @@
+amd-ucode-2011.01.11.ebuild, +metadata.xml:
Add an ebuild to install AMD's CPUs microcode which can be loaded directly by
the kernel.
-
diff --git a/sys-firmware/amd-ucode/amd-ucode-2012.09.10.ebuild b/sys-firmware/amd-ucode/amd-ucode-2012.09.10.ebuild
new file mode 100644
index 000000000000..f358f87c4a6d
--- /dev/null
+++ b/sys-firmware/amd-ucode/amd-ucode-2012.09.10.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-firmware/amd-ucode/amd-ucode-2012.09.10.ebuild,v 1.1 2012/10/24 18:28:15 zerochaos Exp $
+
+EAPI=4
+
+inherit versionator linux-info
+
+MY_P="${PN}-$(replace_all_version_separators -)"
+
+DESCRIPTION="AMD Family 10h, 11h and 14h microcode patch data"
+HOMEPAGE="http://www.amd64.org/support/microcode.html"
+SRC_URI="http://www.amd64.org/pub/microcode/${MY_P}.tar"
+
+LICENSE="amd-ucode"
+SLOT="0"
+IUSE=""
+
+# only meaningful for x86 and x86-64
+KEYWORDS="-* ~amd64 ~x86"
+
+# The license does not allow us to mirror the content.
+RESTRICT="mirror"
+
+S="${WORKDIR}/${MY_P}"
+
+CONFIG_CHECK="~MICROCODE_AMD"
+ERROR_MICROCODE_AMD="Your kernel needs to support AMD microcode loading. You're suggested to build it as a module as it doesn't require a reboot to reload the microcode, that way."
+
+src_install() {
+ insinto /lib/firmware/amd-ucode
+ doins microcode_amd.bin microcode_amd_fam15h.bin
+
+ # INSTALL file also has instructions to load it, so install it as
+ # part of the documentation.
+ dodoc README INSTALL
+}
+
+pkg_postinst() {
+ local show_modules_info=yes
+ local show_builtin_info=yes
+
+ if linux_config_exists; then
+ if linux_chkconfig_builtin MICROCODE; then
+ show_modules_info=no
+ elif linux_chkconfig_module MICROCODE; then
+ show_builtin_info=no
+ fi
+ fi
+
+ elog "You have installed the microcode for AMD CPUs. The kernel will load"
+ elog "it the next time the microcode driver will be executed."
+ elog ""
+
+ if test $show_modules_info = yes; then
+ elog "If you built the microcode driver as a module, you can issue the"
+ elog "following command to force a reload:"
+ elog ""
+ elog " modprobe -r microcode && modprobe microcode"
+ elog ""
+ fi
+
+ if test $show_builtin_info = yes; then
+ elog "If you built the microcode driver in the kernel, it won't load"
+ elog "the file as is. To update the microcode you'll have to set the"
+ elog "following configuration in the kernel:"
+ elog ""
+ elog " CONFIG_EXTRA_FIRMWARE=\"amd-ucode/microcode_amd.bin amd-ucode/microcode_amd_fam15h.bin\""
+ elog " CONFIG_EXTRA_FIRMWARE_DIR=/lib/firmware"
+ elog ""
+ elog "Please note that this will build the firmware within the kernel"
+ elog "image, so you'll have to rebuild the kernel after an upgrade"
+ elog "of the ${CATEGORY}/${PN} package."
+ elog ""
+ fi
+}