diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-03-20 23:56:33 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2012-03-20 23:56:33 +0000 |
commit | 3d809a06c451ca17579184b96da4cfd996a9b4aa (patch) | |
tree | b8a48a6c52656f2cde02349904095fe994fe7a64 /x11-drivers | |
parent | Clarify license statement. (diff) | |
download | gentoo-2-3d809a06c451ca17579184b96da4cfd996a9b4aa.tar.gz gentoo-2-3d809a06c451ca17579184b96da4cfd996a9b4aa.tar.bz2 gentoo-2-3d809a06c451ca17579184b96da4cfd996a9b4aa.zip |
Add newly released Southern Islands and Trinity ucode.
(Portage version: 2.2.0_alpha92/cvs/Linux x86_64)
Diffstat (limited to 'x11-drivers')
-rw-r--r-- | x11-drivers/radeon-ucode/ChangeLog | 10 | ||||
-rw-r--r-- | x11-drivers/radeon-ucode/radeon-ucode-20120320.ebuild | 93 |
2 files changed, 101 insertions, 2 deletions
diff --git a/x11-drivers/radeon-ucode/ChangeLog b/x11-drivers/radeon-ucode/ChangeLog index 1fd82120d0f7..e1b9efc97532 100644 --- a/x11-drivers/radeon-ucode/ChangeLog +++ b/x11-drivers/radeon-ucode/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-drivers/radeon-ucode -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/radeon-ucode/ChangeLog,v 1.21 2011/09/04 12:07:54 maekke Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/radeon-ucode/ChangeLog,v 1.22 2012/03/20 23:56:33 chithanh Exp $ + +*radeon-ucode-20120320 (20 Mar 2012) + + 20 Mar 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + +radeon-ucode-20120320.ebuild: + Add newly released Southern Islands and Trinity ucode. 04 Sep 2011; Markus Meier <maekke@gentoo.org> radeon-ucode-20110531.ebuild: x86 stable, bug #380421 diff --git a/x11-drivers/radeon-ucode/radeon-ucode-20120320.ebuild b/x11-drivers/radeon-ucode/radeon-ucode-20120320.ebuild new file mode 100644 index 000000000000..f9da694be49a --- /dev/null +++ b/x11-drivers/radeon-ucode/radeon-ucode-20120320.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/radeon-ucode/radeon-ucode-20120320.ebuild,v 1.1 2012/03/20 23:56:33 chithanh Exp $ + +inherit linux-info + +UCODE_BASE_URI="http://people.freedesktop.org/~agd5f/${PN/-/_}" +UCODE_FILES=( + "ARUBA_me.bin" + "ARUBA_pfp.bin" + "ARUBA_rlc.bin" + "BARTS_mc.bin" + "BARTS_me.bin" + "BARTS_pfp.bin" + "BTC_rlc.bin" + "CAICOS_mc.bin" + "CAICOS_me.bin" + "CAICOS_pfp.bin" + "CAYMAN_mc.bin" + "CAYMAN_me.bin" + "CAYMAN_pfp.bin" + "CAYMAN_rlc.bin" + "CEDAR_me.bin" + "CEDAR_pfp.bin" + "CEDAR_rlc.bin" + "CYPRESS_me.bin" + "CYPRESS_pfp.bin" + "CYPRESS_rlc.bin" + "JUNIPER_me.bin" + "JUNIPER_pfp.bin" + "JUNIPER_rlc.bin" + "R600_rlc.bin" + "R700_rlc.bin" + "PALM_me.bin" + "PALM_pfp.bin" + "PITCAIRN_ce.bin" + "PITCAIRN_mc.bin" + "PITCAIRN_me.bin" + "PITCAIRN_pfp.bin" + "PITCAIRN_rlc.bin" + "REDWOOD_me.bin" + "REDWOOD_pfp.bin" + "REDWOOD_rlc.bin" + "SUMO2_me.bin" + "SUMO2_pfp.bin" + "SUMO_me.bin" + "SUMO_pfp.bin" + "SUMO_rlc.bin" + "TAHITI_ce.bin" + "TAHITI_mc.bin" + "TAHITI_me.bin" + "TAHITI_pfp.bin" + "TAHITI_rlc.bin" + "TURKS_mc.bin" + "TURKS_me.bin" + "TURKS_pfp.bin" + "VERDE_ce.bin" + "VERDE_mc.bin" + "VERDE_me.bin" + "VERDE_pfp.bin" + "VERDE_rlc.bin" +) + +DESCRIPTION="IRQ microcode for r6xx/r7xx/Evergreen/N.Islands/S.Islands Radeon GPUs and APUs" +HOMEPAGE="http://people.freedesktop.org/~agd5f/radeon_ucode/" +SRC_URI="${UCODE_FILES[@]/#/${UCODE_BASE_URI}/}" + +LICENSE="radeon-ucode" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_unpack() { :; } + +src_install() { + insinto /lib/firmware/radeon || die "insinto failed" + doins "${UCODE_FILES[@]/#/${DISTDIR}/}" || die "doins failed" +} + +pkg_postinst() { + if linux_config_exists && linux_chkconfig_builtin DRM_RADEON; then + if ! linux_chkconfig_present FIRMWARE_IN_KERNEL || \ + ! [[ "$(linux_chkconfig_string EXTRA_FIRMWARE)" == *_rlc.bin* ]]; then + ewarn "Your kernel has radeon DRM built-in but not the IRQ microcode." + ewarn "For kernel modesetting to work, please set in kernel config" + ewarn "CONFIG_FIRMWARE_IN_KERNEL=y" + ewarn "CONFIG_EXTRA_FIRMWARE_DIR=\"/lib/firmware\"" + ewarn "CONFIG_EXTRA_FIRMWARE=\"${UCODE_FILES[@]/#/radeon/}\"" + ewarn "You may skip microcode files for which no hardware is installed." + ewarn "More information at http://wiki.x.org/wiki/radeonBuildHowTo" + fi + fi +} |