Skip to content

Commit adab607

Browse files
committed
DAHDI Linux: Update patch for missing vpmadt032 object file.
For now, the workaround previously in the script has been pulled out into a formal Kbuild patch, so apply that instead. See: asterisk/dahdi-linux#78 asterisk/dahdi-linux#79 PHREAKSCRIPT-61 #close
1 parent 1fdc6e1 commit adab607

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

phreaknet.sh

+2-35
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,8 @@ install_dahdi() {
19561956
git_custom_patch "https://patch-diff.githubusercontent.com/raw/asterisk/dahdi-linux/pull/32.patch" # PR 32: xpp: Fix 32-bit builds
19571957

19581958
# 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
19601961

19611962
# Fix or skip compilation of the XPP driver for 32-bit
19621963
# OS_ARCH=$( uname -m )
@@ -2022,40 +2023,6 @@ install_dahdi() {
20222023

20232024
# if KSRC/KVERS env vars are set, they will automatically propagate to children
20242025
$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
20592026
if [ $? -ne 0 ]; then
20602027
die "DAHDI Linux compilation failed, aborting install"
20612028
fi

0 commit comments

Comments
 (0)