wok rev 8285

Fixed linmodem-intel-536ep and linmodem-intel-537.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 30 16:24:20 2011 +0000 (2011-01-30)
parents ab563b6b9645
children 7406abd5367f
files linmodem-intel-536ep/receipt linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.33.patch linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.37.patch linmodem-intel-537/receipt linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.33.patch linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.37.patch
line diff
     1.1 --- a/linmodem-intel-536ep/receipt	Sun Jan 30 16:09:14 2011 +0000
     1.2 +++ b/linmodem-intel-536ep/receipt	Sun Jan 30 16:24:20 2011 +0000
     1.3 @@ -25,6 +25,8 @@
     1.4  	touch done.$file
     1.5      done <<EOT
     1.6  kernel-2.6.30.patch
     1.7 +kernel-2.6.33.patch
     1.8 +kernel-2.6.37.patch
     1.9  EOT
    1.10    grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $KERNEL_VERSION/"
    1.11     # Bypass linux source package check
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.33.patch	Sun Jan 30 16:24:20 2011 +0000
     2.3 @@ -0,0 +1,40 @@
     2.4 +--- config_check~	2010-02-27 16:18:10.000000000 +0100
     2.5 ++++ config_check	2010-02-27 16:18:10.000000000 +0100
     2.6 +@@ -36,7 +36,7 @@
     2.7 + echo "   Current running kernel is: $KERNVER"
     2.8 + 
     2.9 + 
    2.10 +-if [ -a /lib/modules/$KERNVER/build/include/linux/autoconf.h ]; then
    2.11 ++if [ -a /lib/modules/$KERNVER/build/include/generated/autoconf.h ]; then
    2.12 +    echo "   /lib/modules...   autoconf.h exists"
    2.13 + else
    2.14 +    echo "   /lib/modules...   autoconf.h does not exist"
    2.15 +@@ -44,7 +44,7 @@
    2.16 +    exit 1
    2.17 + fi
    2.18 + 
    2.19 +-if [ "`diff /boot/vmlinuz.autoconf.h /lib/modules/$KERNVER/build/include/linux/autoconf.h`" \
    2.20 ++if [ "`diff /boot/vmlinuz.autoconf.h /lib/modules/$KERNVER/build/include/generated/autoconf.h`" \
    2.21 +     == "" ]; then
    2.22 +    echo "   autoconf.h matches running kernel"
    2.23 + else
    2.24 +@@ -61,7 +61,7 @@
    2.25 +    echo  configurations to create a functional driver for this kernel.
    2.26 +    echo  call \"make config_sync\" and this script will
    2.27 +    echo  copy the file /boot/vmlinuz.autoconf.h to 
    2.28 +-   echo  /lib/modules/$KERNVER/build/include/linux/autoconf.h
    2.29 ++   echo  /lib/modules/$KERNVER/build/include/generated/autoconf.h
    2.30 +    echo  and backup the original autoconf.h as autoconf.bak
    2.31 +    echo  The same will be done for version.h
    2.32 +    echo  Then repeat the build and installation procedure over again.
    2.33 +--- coredrv/hamdefs.h~	2010-02-27 16:20:58.000000000 +0100
    2.34 ++++ coredrv/hamdefs.h	2010-02-27 16:20:58.000000000 +0100
    2.35 +@@ -51,7 +51,7 @@
    2.36 +    #define EXPORT_SYMTAB
    2.37 +    #include<linux/version.h>
    2.38 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
    2.39 +-   #include<linux/autoconf.h>
    2.40 ++   #include<generated/autoconf.h>
    2.41 + #else
    2.42 +    #include<linux/config.h>
    2.43 + #endif
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/linmodem-intel-536ep/stuff/linmodem-intel-536ep-kernel-2.6.37.patch	Sun Jan 30 16:24:20 2011 +0000
     3.3 @@ -0,0 +1,49 @@
     3.4 +--- coredrv/locks.c~	2011-01-26 12:12:00.856675530 +0000
     3.5 ++++ coredrv/locks.c	2011-01-26 12:12:00.873342198 +0000
     3.6 +@@ -141,15 +141,15 @@
     3.7 + #endif
     3.8 + } 
     3.9 + 
    3.10 +-DECLARE_MUTEX(sem0);
    3.11 +-DECLARE_MUTEX(sem1);
    3.12 +-DECLARE_MUTEX(sem2);
    3.13 +-DECLARE_MUTEX(sem3);
    3.14 +-DECLARE_MUTEX(sem4);
    3.15 +-DECLARE_MUTEX(sem5);
    3.16 +-DECLARE_MUTEX(sem6);
    3.17 +-DECLARE_MUTEX(sem7);
    3.18 +-DECLARE_MUTEX(sem8);
    3.19 ++DEFINE_SEMAPHORE(sem0);
    3.20 ++DEFINE_SEMAPHORE(sem1);
    3.21 ++DEFINE_SEMAPHORE(sem2);
    3.22 ++DEFINE_SEMAPHORE(sem3);
    3.23 ++DEFINE_SEMAPHORE(sem4);
    3.24 ++DEFINE_SEMAPHORE(sem5);
    3.25 ++DEFINE_SEMAPHORE(sem6);
    3.26 ++DEFINE_SEMAPHORE(sem7);
    3.27 ++DEFINE_SEMAPHORE(sem8);
    3.28 + 
    3.29 + asmlinkage void linux_RSAGetExclusive(int Resource, unsigned char *Indicator) 
    3.30 + {
    3.31 +--- coredrv/softserial_io.c~	2011-01-26 12:16:55.753342197 +0000
    3.32 ++++ coredrv/softserial_io.c	2011-01-26 12:16:55.763342199 +0000
    3.33 +@@ -65,7 +65,7 @@
    3.34 + }
    3.35 + 
    3.36 + //=============================================================================
    3.37 +-static DECLARE_MUTEX(softserial_write_sem);
    3.38 ++static DEFINE_SEMAPHORE(softserial_write_sem);
    3.39 + int softserial_write(struct tty_struct* ptty,
    3.40 +                       //int from_user_space,
    3.41 +                       const unsigned char* input_buffer,
    3.42 +--- coredrv/coredrv.c~	2011-01-26 12:15:54.713342038 +0000
    3.43 ++++ coredrv/coredrv.c	2011-01-26 12:15:54.726675572 +0000
    3.44 +@@ -765,7 +765,7 @@
    3.45 + extern void do_schedule(void);
    3.46 + #endif
    3.47 + 
    3.48 +-   DECLARE_MUTEX(exec_reg_sem);
    3.49 ++   DEFINE_SEMAPHORE(exec_reg_sem);
    3.50 +    DECLARE_WAIT_QUEUE_HEAD(persistWriteQ);
    3.51 +    DECLARE_WAIT_QUEUE_HEAD(persistReadQ);
    3.52 +    DECLARE_WAIT_QUEUE_HEAD(persistShutdownQ);
     4.1 --- a/linmodem-intel-537/receipt	Sun Jan 30 16:09:14 2011 +0000
     4.2 +++ b/linmodem-intel-537/receipt	Sun Jan 30 16:24:20 2011 +0000
     4.3 @@ -25,6 +25,8 @@
     4.4  	touch done.$file
     4.5      done <<EOT
     4.6  kernel-2.6.30.patch
     4.7 +kernel-2.6.33.patch
     4.8 +kernel-2.6.37.patch
     4.9  EOT
    4.10    grep -rl 'uname -r' * | xargs sed -i "s/uname -r/echo $KERNEL_VERSION/"
    4.11     # Bypass linux source package check
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.33.patch	Sun Jan 30 16:24:20 2011 +0000
     5.3 @@ -0,0 +1,40 @@
     5.4 +--- config_check~	2010-02-27 16:18:10.000000000 +0100
     5.5 ++++ config_check	2010-02-27 16:18:10.000000000 +0100
     5.6 +@@ -36,7 +36,7 @@
     5.7 + echo "   Current running kernel is: $KERNVER"
     5.8 + 
     5.9 + 
    5.10 +-if [ -a /lib/modules/$KERNVER/build/include/linux/autoconf.h ]; then
    5.11 ++if [ -a /lib/modules/$KERNVER/build/include/generated/autoconf.h ]; then
    5.12 +    echo "   /lib/modules...   autoconf.h exists"
    5.13 + else
    5.14 +    echo "   /lib/modules...   autoconf.h does not exist"
    5.15 +@@ -44,7 +44,7 @@
    5.16 +    exit 1
    5.17 + fi
    5.18 + 
    5.19 +-if [ "`diff /boot/vmlinuz.autoconf.h /lib/modules/$KERNVER/build/include/linux/autoconf.h`" \
    5.20 ++if [ "`diff /boot/vmlinuz.autoconf.h /lib/modules/$KERNVER/build/include/generated/autoconf.h`" \
    5.21 +     == "" ]; then
    5.22 +    echo "   autoconf.h matches running kernel"
    5.23 + else
    5.24 +@@ -61,7 +61,7 @@
    5.25 +    echo  configurations to create a functional driver for this kernel.
    5.26 +    echo  call \"make config_sync\" and this script will
    5.27 +    echo  copy the file /boot/vmlinuz.autoconf.h to 
    5.28 +-   echo  /lib/modules/$KERNVER/build/include/linux/autoconf.h
    5.29 ++   echo  /lib/modules/$KERNVER/build/include/generated/autoconf.h
    5.30 +    echo  and backup the original autoconf.h as autoconf.bak
    5.31 +    echo  The same will be done for version.h
    5.32 +    echo  Then repeat the build and installation procedure over again.
    5.33 +--- coredrv/hamdefs.h~	2010-02-27 16:20:58.000000000 +0100
    5.34 ++++ coredrv/hamdefs.h	2010-02-27 16:20:58.000000000 +0100
    5.35 +@@ -51,7 +51,7 @@
    5.36 +    #define EXPORT_SYMTAB
    5.37 +    #include<linux/version.h>
    5.38 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
    5.39 +-   #include<linux/autoconf.h>
    5.40 ++   #include<generated/autoconf.h>
    5.41 + #else
    5.42 +    #include<linux/config.h>
    5.43 + #endif
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/linmodem-intel-537/stuff/linmodem-intel-537-kernel-2.6.37.patch	Sun Jan 30 16:24:20 2011 +0000
     6.3 @@ -0,0 +1,49 @@
     6.4 +--- coredrv/locks.c~	2011-01-26 12:12:00.856675530 +0000
     6.5 ++++ coredrv/locks.c	2011-01-26 12:12:00.873342198 +0000
     6.6 +@@ -141,15 +141,15 @@
     6.7 + #endif
     6.8 + } 
     6.9 + 
    6.10 +-DECLARE_MUTEX(sem0);
    6.11 +-DECLARE_MUTEX(sem1);
    6.12 +-DECLARE_MUTEX(sem2);
    6.13 +-DECLARE_MUTEX(sem3);
    6.14 +-DECLARE_MUTEX(sem4);
    6.15 +-DECLARE_MUTEX(sem5);
    6.16 +-DECLARE_MUTEX(sem6);
    6.17 +-DECLARE_MUTEX(sem7);
    6.18 +-DECLARE_MUTEX(sem8);
    6.19 ++DEFINE_SEMAPHORE(sem0);
    6.20 ++DEFINE_SEMAPHORE(sem1);
    6.21 ++DEFINE_SEMAPHORE(sem2);
    6.22 ++DEFINE_SEMAPHORE(sem3);
    6.23 ++DEFINE_SEMAPHORE(sem4);
    6.24 ++DEFINE_SEMAPHORE(sem5);
    6.25 ++DEFINE_SEMAPHORE(sem6);
    6.26 ++DEFINE_SEMAPHORE(sem7);
    6.27 ++DEFINE_SEMAPHORE(sem8);
    6.28 + 
    6.29 + asmlinkage void linux_RSAGetExclusive(int Resource, unsigned char *Indicator) 
    6.30 + {
    6.31 +--- coredrv/softserial_io.c~	2011-01-26 12:16:55.753342197 +0000
    6.32 ++++ coredrv/softserial_io.c	2011-01-26 12:16:55.763342199 +0000
    6.33 +@@ -65,7 +65,7 @@
    6.34 + }
    6.35 + 
    6.36 + //=============================================================================
    6.37 +-static DECLARE_MUTEX(softserial_write_sem);
    6.38 ++static DEFINE_SEMAPHORE(softserial_write_sem);
    6.39 + int softserial_write(struct tty_struct* ptty,
    6.40 +                       //int from_user_space,
    6.41 +                       const unsigned char* input_buffer,
    6.42 +--- coredrv/coredrv.c~	2011-01-26 12:15:54.713342038 +0000
    6.43 ++++ coredrv/coredrv.c	2011-01-26 12:15:54.726675572 +0000
    6.44 +@@ -765,7 +765,7 @@
    6.45 + extern void do_schedule(void);
    6.46 + #endif
    6.47 + 
    6.48 +-   DECLARE_MUTEX(exec_reg_sem);
    6.49 ++   DEFINE_SEMAPHORE(exec_reg_sem);
    6.50 +    DECLARE_WAIT_QUEUE_HEAD(persistWriteQ);
    6.51 +    DECLARE_WAIT_QUEUE_HEAD(persistReadQ);
    6.52 +    DECLARE_WAIT_QUEUE_HEAD(persistShutdownQ);