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
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-`" ;;
25 [ "$f" ] || abort "No binary for this architecture detected!"
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
45 echo $MAKE $makeopt module-install
46 eval $MAKE $makeopt module-install
51 custmain="nvidia_main"
53 var_append KCC_WRAPPER_REMOVE ' ' '-Werror'