mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
gsmopen: added driver_usb_dongle directory, for building a working and stable 'option' modem serial driver for 2.6.32 kernels (eg: Proxmox, OpenVZ)
This commit is contained in:
parent
6ae038add3
commit
4d8866a7cf
43
src/mod/endpoints/mod_gsmopen/driver_usb_dongle/Makefile
Normal file
43
src/mod/endpoints/mod_gsmopen/driver_usb_dongle/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# Comment/uncomment the following line to disable/enable debugging
|
||||
#DEBUG = y
|
||||
#LDDINC=
|
||||
|
||||
# Add your debugging flag (or not) to CFLAGS
|
||||
ifeq ($(DEBUG),y)
|
||||
DEBFLAGS = -O -g -DSKYPOPEN_DEBUG # "-O" is needed to expand inlines
|
||||
else
|
||||
DEBFLAGS = -O2 -Wall
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS += $(DEBFLAGS)
|
||||
EXTRA_CFLAGS += -I$(LDDINC)
|
||||
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
# call from kernel build system
|
||||
|
||||
option-objs := main.o
|
||||
|
||||
obj-m := option.o
|
||||
|
||||
else
|
||||
|
||||
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
|
||||
PWD := $(shell pwd)
|
||||
|
||||
modules:
|
||||
$(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD)/../include modules
|
||||
|
||||
endif
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions *.order *.symvers
|
||||
|
||||
depend .depend dep:
|
||||
$(CC) $(EXTRA_CFLAGS) -M *.c > .depend
|
||||
|
||||
|
||||
ifeq (.depend,$(wildcard .depend))
|
||||
include .depend
|
||||
endif
|
9
src/mod/endpoints/mod_gsmopen/driver_usb_dongle/README
Normal file
9
src/mod/endpoints/mod_gsmopen/driver_usb_dongle/README
Normal file
@ -0,0 +1,9 @@
|
||||
On kernels < 2.6.34 the option modem driver, needed by your dongle, is unstable.
|
||||
|
||||
In this directory you can build an option.ko module for kernels 2.6.32.* (eg: Proxmox, OpenVZ) and 2.6.34.*
|
||||
|
||||
To install it:
|
||||
|
||||
make clean ; make
|
||||
cp /lib/modules/$(uname -r)/kernel/drivers/usb/serial/option.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/option.ko-backup
|
||||
cp option.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/
|
1817
src/mod/endpoints/mod_gsmopen/driver_usb_dongle/main.c
Normal file
1817
src/mod/endpoints/mod_gsmopen/driver_usb_dongle/main.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user