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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 24 18:59:27 2012 UTC (2 years ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #419473

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 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-20120320.ebuild,v 1.2 2012/06/22 20:37:06 ago Exp $
4
5 inherit linux-info
6
7 UCODE_BASE_URI="http://people.freedesktop.org/~agd5f/${PN/-/_}"
8 UCODE_FILES=(
9 "ARUBA_me.bin"
10 "ARUBA_pfp.bin"
11 "ARUBA_rlc.bin"
12 "BARTS_mc.bin"
13 "BARTS_me.bin"
14 "BARTS_pfp.bin"
15 "BTC_rlc.bin"
16 "CAICOS_mc.bin"
17 "CAICOS_me.bin"
18 "CAICOS_pfp.bin"
19 "CAYMAN_mc.bin"
20 "CAYMAN_me.bin"
21 "CAYMAN_pfp.bin"
22 "CAYMAN_rlc.bin"
23 "CEDAR_me.bin"
24 "CEDAR_pfp.bin"
25 "CEDAR_rlc.bin"
26 "CYPRESS_me.bin"
27 "CYPRESS_pfp.bin"
28 "CYPRESS_rlc.bin"
29 "JUNIPER_me.bin"
30 "JUNIPER_pfp.bin"
31 "JUNIPER_rlc.bin"
32 "R600_rlc.bin"
33 "R700_rlc.bin"
34 "PALM_me.bin"
35 "PALM_pfp.bin"
36 "PITCAIRN_ce.bin"
37 "PITCAIRN_mc.bin"
38 "PITCAIRN_me.bin"
39 "PITCAIRN_pfp.bin"
40 "PITCAIRN_rlc.bin"
41 "REDWOOD_me.bin"
42 "REDWOOD_pfp.bin"
43 "REDWOOD_rlc.bin"
44 "SUMO2_me.bin"
45 "SUMO2_pfp.bin"
46 "SUMO_me.bin"
47 "SUMO_pfp.bin"
48 "SUMO_rlc.bin"
49 "TAHITI_ce.bin"
50 "TAHITI_mc.bin"
51 "TAHITI_me.bin"
52 "TAHITI_pfp.bin"
53 "TAHITI_rlc.bin"
54 "TURKS_mc.bin"
55 "TURKS_me.bin"
56 "TURKS_pfp.bin"
57 "VERDE_ce.bin"
58 "VERDE_mc.bin"
59 "VERDE_me.bin"
60 "VERDE_pfp.bin"
61 "VERDE_rlc.bin"
62 )
63
64 DESCRIPTION="IRQ microcode for r6xx/r7xx/Evergreen/N.Islands/S.Islands Radeon GPUs and APUs"
65 HOMEPAGE="http://people.freedesktop.org/~agd5f/radeon_ucode/"
66 SRC_URI="${UCODE_FILES[@]/#/${UCODE_BASE_URI}/}"
67
68 LICENSE="radeon-ucode"
69 SLOT="0"
70 KEYWORDS="amd64 x86"
71 IUSE=""
72
73 src_unpack() { :; }
74
75 src_install() {
76 insinto /lib/firmware/radeon || die "insinto failed"
77 doins "${UCODE_FILES[@]/#/${DISTDIR}/}" || die "doins failed"
78 }
79
80 pkg_postinst() {
81 if linux_config_exists && linux_chkconfig_builtin DRM_RADEON; then
82 if ! linux_chkconfig_present FIRMWARE_IN_KERNEL || \
83 ! [[ "$(linux_chkconfig_string EXTRA_FIRMWARE)" == *_rlc.bin* ]]; then
84 ewarn "Your kernel has radeon DRM built-in but not the IRQ microcode."
85 ewarn "For kernel modesetting to work, please set in kernel config"
86 ewarn "CONFIG_FIRMWARE_IN_KERNEL=y"
87 ewarn "CONFIG_EXTRA_FIRMWARE_DIR=\"/lib/firmware\""
88 ewarn "CONFIG_EXTRA_FIRMWARE=\"${UCODE_FILES[@]/#/radeon/}\""
89 ewarn "You may skip microcode files for which no hardware is installed."
90 ewarn "More information at http://wiki.x.org/wiki/radeonBuildHowTo"
91 fi
92 fi
93 }

  ViewVC Help
Powered by ViewVC 1.1.20