@@ -1956,7 +1956,8 @@ install_dahdi() {
1956
1956
git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/32.patch" # PR 32: xpp: Fix 32-bit builds
1957
1957
1958
1958
# Not yet merged
1959
- git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/77.diff"
1959
+ git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/77.diff" # EXTRA_CFLAGS removal
1960
+ git_custom_patch " https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/79.diff" # vpmadt032 binary blob
1960
1961
1961
1962
# Fix or skip compilation of the XPP driver for 32-bit
1962
1963
# OS_ARCH=$( uname -m )
@@ -2022,40 +2023,6 @@ install_dahdi() {
2022
2023
2023
2024
# if KSRC/KVERS env vars are set, they will automatically propagate to children
2024
2025
$AST_MAKE $DAHDI_CFLAGS
2025
- if [ $? -ne 0 ]; then
2026
- if [ -f drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o_shipped ]; then
2027
- # If this is PHREAKSCRIPT-61, apply temporary workaround for newer kernels failing with:
2028
- # No rule to make target 'vpmadt032_loader/vpmadt032_x86_64.o', needed by 'dahdi_vpmadt032_loader.o'.
2029
- #
2030
- # On newer kernels, there seems to be some kind of issue (not sure with what, exactly)
2031
- # where vpmadt032_x86_64.o doesn't exist. On older kernels, it's generated by a COPY:
2032
- # COPY /usr/src/dahdi-linux-3.4.0/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o
2033
- #
2034
- # This is likely an issue somewhere in the DAHDI Linux build system, possibly drivers/dahdi/Kbuild...
2035
- # But until this issue is fixed, just manually copy the file at this point so compilation can continue.
2036
- ARCH=$( uname -m )
2037
- # This logic is from drivers/dahdi/Kbuild
2038
- if [ " $ARCH " = " i386" ]; then
2039
- MY_DAHDI_ARCH=x86_32
2040
- else
2041
- if [ " $ARCH " = " x86_64" ]; then
2042
- MY_DAHDI_ARCH=x86_64
2043
- else
2044
- grep " CONFIG_X86_32=y" /boot/config-$( uname -r)
2045
- if [ $? -eq 0 ]; then
2046
- MY_DAHDI_ARCH=x86_32
2047
- else
2048
- MY_DAHDI_ARCH=x86_64
2049
- fi
2050
- fi
2051
- fi
2052
- printf " Detected DAHDI_ARCH: '%s'\n" " $MY_DAHDI_ARCH "
2053
- echoerr " Manually performing COPY for 'vpmadt032_${MY_DAHDI_ARCH} .o'"
2054
- printf " COPY %s %s\n" drivers/dahdi/vpmadt032_loader/vpmadt032_${MY_DAHDI_ARCH} .o_shipped drivers/dahdi/vpmadt032_loader/vpmadt032_${MY_DAHDI_ARCH} .o
2055
- cp -n drivers/dahdi/vpmadt032_loader/vpmadt032_${MY_DAHDI_ARCH} .o_shipped drivers/dahdi/vpmadt032_loader/vpmadt032_${MY_DAHDI_ARCH} .o
2056
- fi
2057
- $AST_MAKE $DAHDI_CFLAGS
2058
- fi
2059
2026
if [ $? -ne 0 ]; then
2060
2027
die " DAHDI Linux compilation failed, aborting install"
2061
2028
fi
0 commit comments