Line 18: |
Line 18: |
| | | |
| apt-get install -y git build-essential linux-headers-$(uname -r) linux-source-4.9 libss7-dev wget apt-utils dahdi-source dahdi-linux aptitude tcsh gawk libusb-dev vim '''libblkid-dev''' | | apt-get install -y git build-essential linux-headers-$(uname -r) linux-source-4.9 libss7-dev wget apt-utils dahdi-source dahdi-linux aptitude tcsh gawk libusb-dev vim '''libblkid-dev''' |
− |
| |
− | == Get DAHDI source files ==
| |
− |
| |
− | wget https://github.com/KG7QIN/AllStarLink/raw/master/dahdi/dahdi-linux-complete-2.10.2%2B2.10.2.tar.gz
| |
| | | |
| == Asterisk Prereqs == | | == Asterisk Prereqs == |
Line 31: |
Line 27: |
| apt-get install -f | | apt-get install -f |
| | | |
− | == Extract and build DAHDI == | + | == Build DAHDI == |
| | | |
− | tar -zxf dahdi-linux-complete-2.10.2+2.10.2.tar.gz | + | git clone https://github.com/AllStarLink/ASL-DAHDI-PATCHED-2.11.1.git |
− | cd dahdi-linux-complete-2.10.2+2.10.2/linux/drivers/dahdi/voicebus/
| + | cd ASL-DAHDI-PATCHED-2.11.1 |
− |
| |
− | echo "--- GpakApi.c.orig 2018-06-09 18:54:14.205144479 -0700\n" \
| |
− | "+++ GpakApi.c 2018-06-09 18:54:28.196956036 -0700\n" \
| |
− | "@@ -1560,7 +1560,7 @@\n" \
| |
− | " if (DspStatus != 0)\n" \
| |
− | " return (RmmFailure);\n" \
| |
− | " \n" \
| |
− | "- for (i = 0; i < MemoryLength_Word16; i++)\n" \
| |
− | "+ for (i = 0; i < MemoryLength_Word16; i++) \n" \
| |
− | " pDest[i] = (short int) MsgBuffer[2 + i]; \n" > patch1
| |
− |
| |
− | patch -ful GpakApi.c patch1
| |
− |
| |
− | cd dahdi-linux-complete-2.10.2+2.10.2/tools/xpp/
| |
− | sed -i -e 's/inline /extern inline /g' echo_loader.c
| |
− |
| |
− | cd dahdi-linux-complete-2.10.2+2.10.2/ | |
− | sed -i -e 's/configure /configure CFLAGS=-Wno-error /g' Makefile
| |
− | cd tools/xpp
| |
− | sed -i -e 's/-I. -Ixtalk -Wall -Werror/-I. -Ixtalk -Wno-error/g' Makefile
| |
− | cd ../..
| |
| make distclean | | make distclean |
| make | | make |