summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-07-26 04:03:41 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-07-26 04:03:41 +0000
commit38b91931c45dfe6eac150d5413eecd364ea30673 (patch)
treed0d222c5783b31bac160302135871312c01fcfcf /sys-firmware/amd-ucode
parentadded ~x86-macos (diff)
downloadhistorical-38b91931c45dfe6eac150d5413eecd364ea30673.tar.gz
historical-38b91931c45dfe6eac150d5413eecd364ea30673.tar.bz2
historical-38b91931c45dfe6eac150d5413eecd364ea30673.zip
Add on the new place.
Package-Manager: portage-2.2.0_alpha120/cvs/Linux x86_64
Diffstat (limited to 'sys-firmware/amd-ucode')
-rw-r--r--sys-firmware/amd-ucode/ChangeLog25
-rw-r--r--sys-firmware/amd-ucode/Manifest18
-rw-r--r--sys-firmware/amd-ucode/amd-ucode-2012.01.17.ebuild76
-rw-r--r--sys-firmware/amd-ucode/metadata.xml8
4 files changed, 127 insertions, 0 deletions
diff --git a/sys-firmware/amd-ucode/ChangeLog b/sys-firmware/amd-ucode/ChangeLog
new file mode 100644
index 000000000000..0c1ea7d06232
--- /dev/null
+++ b/sys-firmware/amd-ucode/ChangeLog
@@ -0,0 +1,25 @@
+# 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 $
+
+*amd-ucode-2012.01.17 (17 Jan 2012)
+
+ 17 Jan 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+ +amd-ucode-2012.01.17.ebuild:
+ Version bump.
+
+ 20 Jan 2011; Diego E. Pettenò <flameeyes@gentoo.org>
+ amd-ucode-2011.01.11.ebuild:
+ Improve postinst message showing information on how to use the microcode for
+ built-in kernels.
+
+ 17 Jan 2011; Diego E. Pettenò <flameeyes@gentoo.org> metadata.xml:
+ Add amd64 as co-maintainer for the package.
+
+*amd-ucode-2011.01.11 (16 Jan 2011)
+
+ 16 Jan 2011; Diego E. Pettenò <flameeyes@gentoo.org>
+ +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/Manifest b/sys-firmware/amd-ucode/Manifest
new file mode 100644
index 000000000000..33ccaa776255
--- /dev/null
+++ b/sys-firmware/amd-ucode/Manifest
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST amd-ucode-2012-01-17.tar 61440 SHA256 87589ad8e61532c2e0f7f418cd452aec9188964dce2f460eba66c379905e1657 SHA512 0ad5d107e5771dabe180803a8a6572e579e4aeb7997f38b94949ccb4742391d2ca556a45b2a67c06f39a3d37b830346c9884ba0e883df132a3031d2ac3731697 WHIRLPOOL 2765fa1df3e48b5fe0faf447bcec2fe0ca7b0960d823fa7d4536d955ae8795cea744d8f0b1269a250e152adf6176a8cfbbe073af1d5ccd2d7bdd07d35abaedc4
+EBUILD amd-ucode-2012.01.17.ebuild 2392 SHA256 7ec17f2b6e8c2c8bf7d1fe344d7564973b578077e07fd2f87063ea958b0bd1ed SHA512 30505a8240bd85e28ce10104c89617c3656b1733a769d60bc1cd238c167a6b9b4001daaf00fb338bc4b5d1af89cbfa5ed75256dea93785898372dc3d037b254f WHIRLPOOL d520398a526013b9817eef26c13c9a109d458fe619da52d5633964aa4b63f8a25219b6ca9d028c803d5d16f07c5419f4c039dcc10ad71ef2316c9ff2955059c3
+MISC ChangeLog 901 SHA256 00819697255faf717fc10387f6d221b7126b93bd31caad6814fe1dbdd854ee73 SHA512 5fb9c7a8d6d1b036cb21b75b39b6e02ff24819d3d2ca1d201f1ea90fc95361e4926118e18f5b0df822d95dff283f4a967ea45d665b97e4952cd3980e313c21d5 WHIRLPOOL 731e9e73b38ede46bf33b325b32c1edafcb56fac150328078622b9b8b01d579050f11e475be5854a2f11d464cd557262a271ed2d915dd9158e5e2468741f84a7
+MISC metadata.xml 231 SHA256 daa39ab9583fa1c70ca766198963a1d29a58d4a9b3e188001de75b57103b8d44 SHA512 50c249bbacfc35d37d8a5a8e5a1b3bc2163b7ca1978fb6f6923987819a2d38da6804d34a84763278f38fe0d2a46016d1461b1d958ef5f11702379de8d232c476 WHIRLPOOL 63a79fc2c88f9cb39e7f471e7a3d368d3ff2ed905889eae270a096d8e348c65f0c3923c13f78ccd1dc5b6922d0f04c294e5f1f8597f04f2778f4bb57aca3fe10
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJQEMGxAAoJEBzRPIrUMBNClvYH/1Pd6aBmL+4/J8jZEhNGUBpe
+svCwhLRhg6PSHIiwKZvJO5SvXu1YfJm4zmmTb+4nn1rDDcJ0IpiYj577FZ5AePmF
+g/2QNuKKJkpw+tZY57S2XhbhXuwSmd3H54IikbhhaeHXWXjCF4rAqPE6TqXCHRrj
+hEDV5TlMdVevVIxDDA7oc43nJO5pRx+K3PQ5FNB/+RWvcNqt/wc2o0boueNLitr2
+PfYSBHkrolVgo9sXM+cOqwK4lb7ylTJCtSy8H2135+LGQc4a3RYSM2fdtgN2jQkf
+3KM1FuXifDvP+3mIZ6aE81qF3pr3R6gLJw2nkr3CsRgBDfwTuuytkrElBiQ4Vwk=
+=UKXu
+-----END PGP SIGNATURE-----
diff --git a/sys-firmware/amd-ucode/amd-ucode-2012.01.17.ebuild b/sys-firmware/amd-ucode/amd-ucode-2012.01.17.ebuild
new file mode 100644
index 000000000000..b34da03497d0
--- /dev/null
+++ b/sys-firmware/amd-ucode/amd-ucode-2012.01.17.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.01.17.ebuild,v 1.1 2012/07/26 04:03:41 flameeyes 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
+}
diff --git a/sys-firmware/amd-ucode/metadata.xml b/sys-firmware/amd-ucode/metadata.xml
new file mode 100644
index 000000000000..b806bb6d0d9a
--- /dev/null
+++ b/sys-firmware/amd-ucode/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>amd64</herd>
+ <maintainer>
+ <email>flameeyes@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>