/[gentoo-x86]/x11-drivers/radeon-ucode/radeon-ucode-20110302.ebuild
Gentoo

Contents of /x11-drivers/radeon-ucode/radeon-ucode-20110302.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Mar 26 10:32:45 2011 UTC (3 years, 5 months ago) by fauli
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable, bug 359059

(Portage version: 2.1.9.42/cvs/Linux i686, RepoMan options: --force)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/radeon-ucode/radeon-ucode-20110302.ebuild,v 1.2 2011/03/21 13:39:21 hwoarang Exp $
4
5 inherit linux-info
6
7 UCODE_BASE_URI="http://people.freedesktop.org/~agd5f/${PN/-/_}"
8 UCODE_FILES=(
9 "BARTS_mc.bin"
10 "BARTS_me.bin"
11 "BARTS_pfp.bin"
12 "BTC_rlc.bin"
13 "CAICOS_mc.bin"
14 "CAICOS_me.bin"
15 "CAICOS_pfp.bin"
16 "CAYMAN_mc.bin"
17 "CAYMAN_me.bin"
18 "CAYMAN_pfp.bin"
19 "CAYMAN_rlc.bin"
20 "CEDAR_me.bin"
21 "CEDAR_pfp.bin"
22 "CEDAR_rlc.bin"
23 "CYPRESS_me.bin"
24 "CYPRESS_pfp.bin"
25 "CYPRESS_rlc.bin"
26 "JUNIPER_me.bin"
27 "JUNIPER_pfp.bin"
28 "JUNIPER_rlc.bin"
29 "R600_rlc.bin"
30 "R700_rlc.bin"
31 "PALM_me.bin"
32 "PALM_pfp.bin"
33 "REDWOOD_me.bin"
34 "REDWOOD_pfp.bin"
35 "REDWOOD_rlc.bin"
36 "SUMO_rlc.bin"
37 "TURKS_mc.bin"
38 "TURKS_me.bin"
39 "TURKS_pfp.bin"
40 )
41
42 DESCRIPTION="IRQ microcode for r6xx/r7xx/Evergreen Radeon GPUs"
43 HOMEPAGE="http://people.freedesktop.org/~agd5f/radeon_ucode/"
44 SRC_URI="${UCODE_FILES[@]/#/${UCODE_BASE_URI}/}"
45
46 LICENSE="radeon-ucode"
47 SLOT="0"
48 KEYWORDS="amd64 x86"
49 IUSE=""
50
51 src_unpack() { :; }
52
53 src_install() {
54 insinto /lib/firmware/radeon || die "insinto failed"
55 doins "${UCODE_FILES[@]/#/${DISTDIR}/}" || die "doins failed"
56 }
57
58 pkg_postinst() {
59 if linux_config_exists && linux_chkconfig_builtin DRM_RADEON; then
60 if ! linux_chkconfig_present FIRMWARE_IN_KERNEL || \
61 ! [[ "$(linux_chkconfig_string EXTRA_FIRMWARE)" == *_rlc.bin* ]]; then
62 ewarn "Your kernel has radeon DRM built-in but not the IRQ microcode."
63 ewarn "For kernel modesetting to work, please set in kernel config"
64 ewarn "CONFIG_FIRMWARE_IN_KERNEL=y"
65 ewarn "CONFIG_EXTRA_FIRMWARE_DIR=\"/lib/firmware\""
66 ewarn "CONFIG_EXTRA_FIRMWARE=\"${UCODE_FILES[@]/#/radeon/}\""
67 ewarn "You may skip microcode files for which no hardware is installed."
68 ewarn "More information at http://wiki.x.org/wiki/radeonBuildHowTo"
69 fi
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20