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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Sep 4 12:07:54 2011 UTC (2 years, 10 months ago) by maekke
Branch: MAIN
Changes since 1.3: +2 -2 lines
x86 stable, bug #380421

(Portage version: 2.1.10.12/cvs/Linux x86_64)

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-20110531.ebuild,v 1.3 2011/08/30 08:14:47 chainsaw 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 "SUMO2_me.bin"
37 "SUMO2_pfp.bin"
38 "SUMO_me.bin"
39 "SUMO_pfp.bin"
40 "SUMO_rlc.bin"
41 "TURKS_mc.bin"
42 "TURKS_me.bin"
43 "TURKS_pfp.bin"
44 )
45
46 DESCRIPTION="IRQ microcode for r6xx/r7xx/Evergreen/Northern Islands Radeon GPUs and APUs"
47 HOMEPAGE="http://people.freedesktop.org/~agd5f/radeon_ucode/"
48 SRC_URI="${UCODE_FILES[@]/#/${UCODE_BASE_URI}/}"
49
50 LICENSE="radeon-ucode"
51 SLOT="0"
52 KEYWORDS="amd64 x86"
53 IUSE=""
54
55 src_unpack() { :; }
56
57 src_install() {
58 insinto /lib/firmware/radeon || die "insinto failed"
59 doins "${UCODE_FILES[@]/#/${DISTDIR}/}" || die "doins failed"
60 }
61
62 pkg_postinst() {
63 if linux_config_exists && linux_chkconfig_builtin DRM_RADEON; then
64 if ! linux_chkconfig_present FIRMWARE_IN_KERNEL || \
65 ! [[ "$(linux_chkconfig_string EXTRA_FIRMWARE)" == *_rlc.bin* ]]; then
66 ewarn "Your kernel has radeon DRM built-in but not the IRQ microcode."
67 ewarn "For kernel modesetting to work, please set in kernel config"
68 ewarn "CONFIG_FIRMWARE_IN_KERNEL=y"
69 ewarn "CONFIG_EXTRA_FIRMWARE_DIR=\"/lib/firmware\""
70 ewarn "CONFIG_EXTRA_FIRMWARE=\"${UCODE_FILES[@]/#/radeon/}\""
71 ewarn "You may skip microcode files for which no hardware is installed."
72 ewarn "More information at http://wiki.x.org/wiki/radeonBuildHowTo"
73 fi
74 fi
75 }

  ViewVC Help
Powered by ViewVC 1.1.20