cgit: Added cgit 0.7.3-c502865 - A CGI for git written in C
[opensde-package-nopast.git] / x11 / nvidia / postlinux.conf
blobc82d895ffa366646f5b8f38214ac862f748cdfcf
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../nvidia/postlinux.conf
5 # Copyright (C) 2008 The OpenSDE Project
6 # Copyright (C) 2004 - 2006 The T2 SDE Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- SDE-COPYRIGHT-NOTE-END ---
16 # this builds the matching nvidia kernel modules for the building kernel
18 nvidia_main() {
19         f=
20         case $arch in
21           x86) f="`match_source_file -p -x86-`" ;;
22           x86-64) f="`match_source_file -p -x86_64-`" ;;
23           ia64) f="`match_source_file -p -ia64-`" ;;
24         esac
25         [ "$f" ] || abort "No binary for this architecture detected!"
27         sh $f --extract-only
28         cd N*-Linux-*-pkg*
30         apply_patchfiles
32         cd usr/src/nv
33         var_append makeopt " " "CC=$KCC"
35         var_append makeopt " " "SYSSRC=$kerneldir KERNEL_MODLIB=$moduledir"
36         var_append makeopt " " "KERNEL_UNAME=$lx_kernelrelease"
37         var_append makeopt " " "MODULE_ROOT=$moduledir"
39         echo $MAKE $makeopt module
40         eval $MAKE $makeopt module
41         if [[ $treever = 24* ]] ; then
42                 echo $MAKE $makeopt package-install
43                 eval $MAKE $makeopt package-install
44         else
45                 echo $MAKE $makeopt module-install
46                 eval $MAKE $makeopt module-install
47         fi
50 autoextract=0
51 custmain="nvidia_main"
53 var_append KCC_WRAPPER_REMOVE ' ' '-Werror'