--- make.sh.orig 2003-05-09 15:35:16 +0400 +++ make.sh 2003-07-15 20:33:32 +0400 @@ -114,7 +114,8 @@ # assing default location of linux kernel headers # *** adapt to your individual setup if needed *** #linuxincludes=/usr/include # no config info present! -linuxincludes=/usr/src/linux/include +#linuxincludes=/usr/src/linux/include +linuxincludes=/usr/lib/kernel/include #linuxincludes=/usr/src/linux-2.2.14.new.iii/include #linuxincludes=/usr/src/linux-2.4.0-test7/include @@ -128,8 +129,9 @@ # assign default location of drm header files # *** adapt to your individual setup if needed *** -drmincludes=${linuxincludes}/../drivers/char/drm +#drmincludes=${linuxincludes}/../drivers/char/drm #drmincludes=/usr/local/src/dripkg/drm +drmincludes=/usr/src/drm-source-4.3.0 # since kernel 2.4.8 the X4.1.0 drm kernel module headers are part # of the kernel build environment - check dir and expected files. @@ -173,7 +175,8 @@ # verify match with respective line in linux/version.h # sample: #define UTS_RELEASE "2.4.0-test7" -src_file=$linuxincludes/linux/version.h +#src_file=$linuxincludes/linux/version.h +src_file=/usr/lib//kernel/${uname_r}/version.h if [ ! -e $src_file ]; then echo "kernel includes at $linuxincludes not found or incomplete" | tee -a $logfile @@ -189,9 +192,9 @@ if [ $UTS_REL_COUNT -gt 0 ]; then kernel_release=`cat $src_file | grep UTS_RELEASE | cut -d'"' -f2` - else +# else # UTS-define is in external version-*.h files, i.e. linux-2.2.14-5.0-RedHat does this flaw - kernel_release=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2` +# kernel_release=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2` fi fi @@ -380,7 +383,7 @@ # 4. # linux/autoconf.h may contain this: #define CONFIG_SMP 1 -src_file=$linuxincludes/linux/autoconf.h +src_file=/usr/lib/kernel/${uname_r}/autoconf.h if [ ! -e $src_file ]; then echo "Warning:" >> $logfile @@ -418,7 +421,7 @@ # 1. # config/modversions.h may contain this: #define CONFIG_MODVERSIONS 1 | #undef CONFIG_MODVERSIONS -src_file=$linuxincludes/config/modversions.h +src_file=/usr/lib/kernel/${uname_r}/modversions.h if [ ! -e $src_file ]; then echo "Warning:" >> $logfile @@ -454,7 +457,7 @@ # 2. # linux/autoconf.h may contain this: #define CONFIG_MODVERSIONS 1 -src_file=$linuxincludes/linux/autoconf.h +src_file=/usr/lib/kernel/${uname_r}/autoconf.h if [ ! -e $src_file ]; then echo "Warning:" >> $logfile @@ -477,7 +480,7 @@ # act on final result if [ ! $MODVERSIONS = 0 ] then - def_modversions="-DMODVERSIONS -include $linuxincludes/linux/modversions.h" + def_modversions="-DMODVERSIONS -include /usr/lib/kernel/${uname_r}/modversions.h" fi