summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2010-11-23 01:29:03 +0000
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2010-11-23 01:29:03 +0000
commiteb4478b15ab4497f7961c0113c89f6705958deda (patch)
tree5058b2fb18eaf7241f66bc2c907a5de83061e7fa /x11-drivers
parentVersion bump (diff)
downloadgentoo-2-eb4478b15ab4497f7961c0113c89f6705958deda.tar.gz
gentoo-2-eb4478b15ab4497f7961c0113c89f6705958deda.tar.bz2
gentoo-2-eb4478b15ab4497f7961c0113c89f6705958deda.zip
add new Bobcat microcode
(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/radeon-ucode/ChangeLog8
-rw-r--r--x11-drivers/radeon-ucode/radeon-ucode-20101122.ebuild57
2 files changed, 64 insertions, 1 deletions
diff --git a/x11-drivers/radeon-ucode/ChangeLog b/x11-drivers/radeon-ucode/ChangeLog
index 894c460b6f89..d1321a17603b 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-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/radeon-ucode/ChangeLog,v 1.5 2010/07/15 09:05:17 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/radeon-ucode/ChangeLog,v 1.6 2010/11/23 01:29:03 chithanh Exp $
+
+*radeon-ucode-20101122 (23 Nov 2010)
+
+ 23 Nov 2010; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+ +radeon-ucode-20101122.ebuild:
+ add new Bobcat microcode
15 Jul 2010; Christian Faulhammer <fauli@gentoo.org>
radeon-ucode-20100408.ebuild:
diff --git a/x11-drivers/radeon-ucode/radeon-ucode-20101122.ebuild b/x11-drivers/radeon-ucode/radeon-ucode-20101122.ebuild
new file mode 100644
index 000000000000..bb7cf08f09e8
--- /dev/null
+++ b/x11-drivers/radeon-ucode/radeon-ucode-20101122.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/radeon-ucode/radeon-ucode-20101122.ebuild,v 1.1 2010/11/23 01:29:03 chithanh Exp $
+
+inherit linux-info
+
+UCODE_BASE_URI="http://people.freedesktop.org/~agd5f/${PN/-/_}"
+UCODE_FILES=(
+ "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"
+ "REDWOOD_me.bin"
+ "REDWOOD_pfp.bin"
+ "REDWOOD_rlc.bin"
+ "SUMO_rlc.bin"
+)
+
+DESCRIPTION="IRQ microcode for r6xx/r7xx/Evergreen Radeon GPUs"
+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
+}