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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun May 4 12:38:30 2014 UTC (4 years, 2 months ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Add more ucode for recent hardware and bug fixes, bug #508670.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)

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.3 2014/04/06 10:11:10 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