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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Apr 6 10:11:10 2014 UTC (4 years, 6 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #500368

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 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-20140204.ebuild,v 1.2 2014/03/27 11:06:00 ago Exp $
4
5 EAPI=5
6
7 inherit linux-info
8
9 DESCRIPTION="IRQ microcode for r6xx/r7xx/Evergreen/N.Islands/S.Islands Radeon GPUs and APUs"
10 HOMEPAGE="http://people.freedesktop.org/~agd5f/radeon_ucode/"
11 SRC_URI="mirror://gentoo/${P}.tar.xz"
12
13 LICENSE="radeon-ucode"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE=""
17
18 RDEPEND="!sys-kernel/linux-firmware[-savedconfig]"
19
20 S=${WORKDIR}/${PN/-/_}
21
22 src_install() {
23 insinto /lib/firmware/radeon
24 FILES=( *.bin )
25 doins ${FILES[@]} || die "doins failed"
26 }
27
28 pkg_postinst() {
29 if linux_config_exists && linux_chkconfig_builtin DRM_RADEON; then
30 if ! linux_chkconfig_present FIRMWARE_IN_KERNEL || \
31 ! [[ "$(linux_chkconfig_string EXTRA_FIRMWARE)" == *_rlc.bin* ]]; then
32 ewarn "Your kernel has radeon DRM built-in but not the IRQ microcode."
33 ewarn "For kernel modesetting to work, please set in kernel config"
34 ewarn "CONFIG_FIRMWARE_IN_KERNEL=y"
35 ewarn "CONFIG_EXTRA_FIRMWARE_DIR=\"/lib/firmware\""
36 ewarn "CONFIG_EXTRA_FIRMWARE=\"${FILES[@]/#/radeon/}\""
37 ewarn "You may skip microcode files for which no hardware is installed."
38 ewarn "More information at http://wiki.gentoo.org/wiki/Radeon#Firmware"
39 fi
40 fi
41 }

  ViewVC Help
Powered by ViewVC 1.1.20