Browse Source

nvidia: Updated (100.14.19 -> 295.33)

user/chris/next/aufs
Nagy Karoly Gabriel 13 years ago committed by Alejandro Mery
parent
commit
e1aa5b837b
  1. 43
      x11/nvidia/install/etc_X11_xorg-nvidia.conf.txt
  2. 34
      x11/nvidia/module-install-26.patch
  3. 51
      x11/nvidia/nvidia.conf
  4. 8
      x11/nvidia/nvidia.desc
  5. 13
      x11/nvidia/postlinux.conf

43
x11/nvidia/install/etc_X11_xorg-nvidia.conf.txt

@ -0,0 +1,43 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../nvidia/install/etc_X11_xorg-nvidia.conf.txt
# Copyright (C) 2012 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
Section "Device"
Identifier "nvidia"
Driver "nvidia"
Option "DynamicTwinView" "False"
Option "NoFlip" "false"
Option "NoLogo" "true"
Option "ConnectToAcpid" "0"
Option "FlatPanelProperties" "Scaling = Native"
Option "ModeValidation" "NoVesaModes, NoXServerModes"
Option "HWCursor" "false"
EndSection
Section "Screen"
Identifier "screen"
Device "nvidia"
DefaultDepth 24
Option "ColorRange" "Full"
# Option "ColorRange" "Limited"
# Option "ColorSpace" "RGB"
# Option "ColorSpace" "YCbCr444"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "false"
EndSection

34
x11/nvidia/module-install-26.patch

@ -1,22 +1,36 @@
diff -ruN NVIDIA-Linux-x86-100.14.19-pkg1.orig/usr/src/nv/Makefile.kbuild NVIDIA-Linux-x86-100.14.19-pkg1/usr/src/nv/Makefile.kbuild # --- SDE-COPYRIGHT-NOTE-BEGIN ---
--- NVIDIA-Linux-x86-100.14.19-pkg1.orig/usr/src/nv/Makefile.kbuild 2007-09-12 23:49:01.000000000 +0200 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
+++ NVIDIA-Linux-x86-100.14.19-pkg1/usr/src/nv/Makefile.kbuild 2007-09-22 20:33:07.000000000 +0200 #
@@ -334,7 +334,8 @@ # Filename: package/.../nvidia/module-install-26.patch
# Copyright (C) 2012 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- kernel/Makefile.kbuild.orig 2012-03-17 22:55:51.000000000 +0100
+++ kernel/Makefile.kbuild 2012-04-10 23:54:38.063139448 +0200
@@ -257,8 +257,7 @@
module-install: suser-sanity-check module module-install: suser-sanity-check module
@mkdir -p $(MODULE_ROOT)/video; \ @mkdir -p $(MODULE_ROOT)/video; \
install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \ - install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video; \
- PATH="$(PATH):/bin:/sbin" depmod -ae; - PATH="$(PATH):/bin:/sbin" depmod -ae;
+ echo "$(MODULE_OBJECT) installed successfully."; + install -m 0664 -o root -g root $(MODULE_OBJECT) $(MODULE_ROOT)/video;
+# PATH="$(PATH):/bin:/sbin" depmod -ae;
# #
# This target builds, then installs, then creates device nodes and inserts # This target builds, then installs, then creates device nodes and inserts
@@ -342,7 +343,7 @@ @@ -266,7 +265,6 @@
# #
package-install: module-install rmmod-sanity-check package-install: module-install rmmod-sanity-check
- PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \ - @PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) && \
+# PATH="$(PATH):/bin:/sbin" modprobe $(MODULE_NAME) &&
echo "$(MODULE_OBJECT) installed successfully."; echo "$(MODULE_OBJECT) installed successfully.";
# #

51
x11/nvidia/nvidia.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../nvidia/nvidia.conf # Filename: package/.../nvidia/nvidia.conf
# Copyright (C) 2007 - 2008 The OpenSDE Project # Copyright (C) 2007 - 2012 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -23,20 +23,47 @@ main() {
[ "$f" ] || abort "No binary for this architecture detected!" [ "$f" ] || abort "No binary for this architecture detected!"
sh $f --extract-only sh $f --extract-only
cd N*-Linux-*-pkg* cd N*-Linux-*
patch -p0 < $base/package/x11/nvidia/module-install-26.patch
apply_patchfiles
# install the X driver and extensions that do not conflict ... # install the X driver and extensions that do not conflict ...
mv -fv usr/X11R6/lib/libXvMCNVIDIA* $root/usr/X11/${libdir##*/}/ mv -fv libXvMCNVIDIA* $root/usr/X11/${libdir##*/}/
mv -fv usr/X11R6/lib/modules/drivers/* $root/usr/X11/${libdir##*/}/xorg/modules/drivers/ mv -fv libvdpau* $root/usr/X11/${libdir##*/}/
mv -fv usr/X11R6/lib/modules/extensions/* $root/usr/X11/${libdir##*/}/xorg/modules/extensions/ mv -fv nvidia_drv.so $root/usr/X11/${libdir##*/}/xorg/modules/drivers/
mv -fv libglx.so* $root/usr/X11/${libdir##*/}/xorg/modules/extensions/libglx_nvidia.so
# copy the "shared" files the user might later munge into the system ... mkdir -p $root/usr/${libdir##*/}
cd usr
mkdir -p $root/$prefix/src/nvidia mv -fv libnvidia-glcore.so* $root/usr/${libdir##*/}
cp -arv X11R6 include lib $root/$prefix/src/nvidia/ mv -fv libnvidia-compiler.so* $root/usr/${libdir##*/}
cp -arv share/doc/* $docdir/ mv -fv libcuda.so* $root/usr/${libdir##*/}
mv -fv libnvcuvid.so* $root/usr/${libdir##*/}
mv -fv libnvidia-ml.so* $root/usr/${libdir##*/}
mv -fv libnvidia-cfg.so* $root/usr/${libdir##*/}
mv -fv tls/libnvidia-tls.so* $root/usr/${libdir##*/}
mv -fv libGL.so* $root/usr/${libdir##*/}/libGL_nvidia.so.1
mkdir -p $root/usr/bin
mv -fv nvidia-smi $root/usr/bin/
mv -fv nvidia-xconfig $root/usr/bin/
mv -fv nvidia-settings $root/usr/bin/
# Fancyness
mkdir -p $root/etc/OpenCL/vendors
mv -fv nvidia.icd $root/etc/OpenCL/vendors/
mkdir -p $root/usr/share/man/man1
mv -fv nvidia-settings.1.gz $root/usr/share/man/man1/
mv -fv nvidia-xconfig.1.gz $root/usr/share/man/man1/
mkdir -p $root/usr/share/applications
mkdir -p $root/usr/share/pixmaps
sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i "nvidia-settings.desktop"
mv -fv nvidia-settings.desktop $root/usr/share/applications/
mv -fv nvidia-settings.png $root/usr/share/pixmaps
} }
autoextract=0 autoextract=0

8
x11/nvidia/nvidia.desc

@ -2,7 +2,7 @@
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. [COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY] [COPY]
[COPY] Filename: package/.../nvidia/nvidia.desc [COPY] Filename: package/.../nvidia/nvidia.desc
[COPY] Copyright (C) 2006 The OpenSDE Project [COPY] Copyright (C) 2006 - 2012 The OpenSDE Project
[COPY] Copyright (C) 2004 - 2006 The T2 SDE Project [COPY] Copyright (C) 2004 - 2006 The T2 SDE Project
[COPY] [COPY]
[COPY] More information can be found in the files COPYING and README. [COPY] More information can be found in the files COPYING and README.
@ -33,9 +33,9 @@
[L] Free-to-use [L] Free-to-use
[S] Stable [S] Stable
[V] 100.14.19 [V] 295.33
[P] X -----5---9 131.300 [P] X -----5---9 131.300
[D] 2399878693 NVIDIA-Linux-x86_64-100.14.19-pkg2.run http://us.download.nvidia.com/XFree86/Linux-x86_64/100.14.19/ [D] 2544187557 NVIDIA-Linux-x86_64-295.33.run http://us.download.nvidia.com/XFree86/Linux-x86_64/295.33/
[D] 2175572652 NVIDIA-Linux-x86-100.14.19-pkg1.run http://us.download.nvidia.com/XFree86/Linux-x86/100.14.19/ [D] 179419429 NVIDIA-Linux-x86-295.33.run http://us.download.nvidia.com/XFree86/Linux-x86/295.33/
[D] 3170993828 NVIDIA-Linux-ia64-1.0-5336-pkg1.run ftp://download.nvidia.com/XFree86/Linux-ia64/1.0-5336/ [D] 3170993828 NVIDIA-Linux-ia64-1.0-5336-pkg1.run ftp://download.nvidia.com/XFree86/Linux-ia64/1.0-5336/

13
x11/nvidia/postlinux.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../nvidia/postlinux.conf # Filename: package/.../nvidia/postlinux.conf
# Copyright (C) 2008 The OpenSDE Project # Copyright (C) 2008 - 2012 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -25,11 +25,11 @@ nvidia_main() {
[ "$f" ] || abort "No binary for this architecture detected!" [ "$f" ] || abort "No binary for this architecture detected!"
sh $f --extract-only sh $f --extract-only
cd N*-Linux-*-pkg* cd N*-Linux-*
apply_patchfiles patch -p0 < $base/package/x11/nvidia/module-install-26.patch
cd usr/src/nv cd kernel
var_append makeopt " " "CC=$KCC" var_append makeopt " " "CC=$KCC"
var_append makeopt " " "SYSSRC=$kerneldir KERNEL_MODLIB=$moduledir" var_append makeopt " " "SYSSRC=$kerneldir KERNEL_MODLIB=$moduledir"
@ -38,13 +38,8 @@ nvidia_main() {
echo $MAKE $makeopt module echo $MAKE $makeopt module
eval $MAKE $makeopt module eval $MAKE $makeopt module
if [[ $treever = 24* ]] ; then
echo $MAKE $makeopt package-install
eval $MAKE $makeopt package-install
else
echo $MAKE $makeopt module-install echo $MAKE $makeopt module-install
eval $MAKE $makeopt module-install eval $MAKE $makeopt module-install
fi
} }
autoextract=0 autoextract=0

Loading…
Cancel
Save