initial import of x11-drivers/nouveau-firmware for bug #253705
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Mon, 15 Feb 2010 21:26:32 +0000 (21:26 +0000)
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Mon, 15 Feb 2010 21:26:32 +0000 (21:26 +0000)
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64

x11-drivers/nouveau-firmware/ChangeLog [new file with mode: 0644]
x11-drivers/nouveau-firmware/Manifest [new file with mode: 0644]
x11-drivers/nouveau-firmware/metadata.xml [new file with mode: 0644]
x11-drivers/nouveau-firmware/nouveau-firmware-20091212.ebuild [new file with mode: 0644]

diff --git a/x11-drivers/nouveau-firmware/ChangeLog b/x11-drivers/nouveau-firmware/ChangeLog
new file mode 100644 (file)
index 0000000..c3bd739
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for x11-drivers/nouveau-firmware
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nouveau-firmware/ChangeLog,v 1.1 2010/02/15 21:26:32 chithanh Exp $
+
+*nouveau-firmware-20091212 (15 Feb 2010)
+
+  15 Feb 2010; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+  +nouveau-firmware-20091212.ebuild, +metadata.xml:
+  Initial import for bug #253705
+
diff --git a/x11-drivers/nouveau-firmware/Manifest b/x11-drivers/nouveau-firmware/Manifest
new file mode 100644 (file)
index 0000000..e7757af
--- /dev/null
@@ -0,0 +1,4 @@
+DIST nouveau-firmware-20091212.tar.gz 97488 RMD160 ccde40ad3eba5219ebecd2610a1f9aa900aefa56 SHA1 26ff5135a47fdac8b16ce4e69e83c4ba4459ca30 SHA256 4eaeb2044c1da95b50ea4f1facb0effc74d65d8b13dc10893c26e4fe9fe23fb8
+EBUILD nouveau-firmware-20091212.ebuild 1305 RMD160 d808877485b9dd1df6ac54d1447e21517e51f89c SHA1 b76b85cc66a7e6dc80b7ba90415a52eb236b8f15 SHA256 3b8b5d731564730b33c58e0ac9b6086f8e4b0c3edf5aaa262bdfa2bc8e02f243
+MISC ChangeLog 428 RMD160 cadc28c60d34c14a9d4f2d60626c89995904beb4 SHA1 bac68cc2b1893ba5fd873232d0b64b4b7ec4b636 SHA256 e33ee7d75c02bb3fad88b053f494f7ccb27c21dff8c1aca6c3141e93bd05a5fb
+MISC metadata.xml 265 RMD160 24a368e280b83393abb1cda7b15e7888e1570a04 SHA1 b60c32aece47cc1c4febe46e54786494a3b913bf SHA256 1240cc1d6dda0bc1a42ca2bffe70aa6a1d34f85f28112615ceb327f58a594a16
diff --git a/x11-drivers/nouveau-firmware/metadata.xml b/x11-drivers/nouveau-firmware/metadata.xml
new file mode 100644 (file)
index 0000000..40a4ce9
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+       <email>chithanh@gentoo.org</email>
+       <name>Chí-Thanh Christopher Nguyễn</name>
+</maintainer>
+<herd>x11</herd>
+</pkgmetadata>
diff --git a/x11-drivers/nouveau-firmware/nouveau-firmware-20091212.ebuild b/x11-drivers/nouveau-firmware/nouveau-firmware-20091212.ebuild
new file mode 100644 (file)
index 0000000..df3f56b
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nouveau-firmware/nouveau-firmware-20091212.ebuild,v 1.1 2010/02/15 21:26:32 chithanh Exp $
+
+inherit linux-info
+
+DESCRIPTION="firmware for nouveau"
+HOMEPAGE="http://nouveau.freedesktop.org/"
+SRC_URI="http://people.freedesktop.org/~pq/nouveau-drm/${P}.tar.gz"
+
+LICENSE="NVIDIA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+RESTRICT="bindist mirror"
+
+src_install() {
+       insinto /lib/firmware
+       doins -r nouveau || die "doins failed"
+}
+
+pkg_postinst() {
+       if linux_config_exists && linux_chkconfig_builtin DRM_NOUVEAU; then
+               if ! linux_chkconfig_present FIRMWARE_IN_KERNEL || \
+                       ! [[ "$(linux_chkconfig_string EXTRA_FIRMWARE)" == *nouveau* ]]; then
+                       ewarn "Your kernel has nouveau DRM built-in but not the CTX microcode."
+                       ewarn "For kernel modesetting to work, please set in kernel config"
+                       ewarn "CONFIG_FIRMWARE_IN_KERNEL=y"
+                       ewarn "CONFIG_EXTRA_FIRMWARE_DIR=\"/lib/firmware\""
+                       ewarn "CONFIG_EXTRA_FIRMWARE=\"nouveau/xxxx.ctxprog nouveau/yyyy.ctxvals\""
+                       ewarn "where xxxx and yyyy need to be values corresponding to your hardware."
+                       ewarn "More information at http://nouveau.freedesktop.org/wiki/InstallDRM"
+               fi
+       fi
+}