Skip to content

Conversation

@InterLinked1
Copy link
Contributor

Since kernel commit torvalds/linux@13b2548, the architecture specific object files for vpmadt032_loader, e.g. vpmadt032_x86_64.o is no longer implicitly created from the shipped binary (also known as a binary blob), e.g. vpmadt032_x86_64.o_shipped. Although kbuild should be creating a copy for us, add an explicit rule to create the dependency as a workaround.

Resolves: #78

Since kernel commit torvalds/linux@13b2548,
the architecture specific object files for vpmadt032_loader, e.g. vpmadt032_x86_64.o
is no longer implicitly created from the shipped binary (also known as a binary blob),
e.g. vpmadt032_x86_64.o_shipped. Although kbuild should be creating a copy for us,
add an explicit rule to create the dependency as a workaround.

Resolves: asterisk#78
InterLinked1 added a commit to InterLinked1/phreakscript that referenced this pull request Feb 23, 2025
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
@matkam
Copy link

matkam commented Jan 24, 2026

Something is still off even with this patch applied.

  CC [M]  vpmadt032_loader/dahdi_vpmadt032_loader.o
cp vpmadt032_loader/vpmadt032_x86_64.o_shipped vpmadt032_loader/vpmadt032_x86_64.o
  LD [M]  dahdi_vpmadt032_loader.o
dahdi_vpmadt032_loader.o: warning: objtool: .text+0x4426: unannotated intra-function call
make[4]: *** [/usr/lib/modules/6.18.6-arch1-1/build/scripts/Makefile.build:503: dahdi_vpmadt032_loader.o] Error 255
make[4]: *** Deleting file 'dahdi_vpmadt032_loader.o'
make[3]: *** [/usr/lib/modules/6.18.6-arch1-1/build/Makefile:2010: .] Error 2
make[2]: *** [/usr/lib/modules/6.18.6-arch1-1/build/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/home/matt/src/misc/dahdi-linux/drivers/dahdi'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.18.6-arch1-1/build'
make: *** [Makefile:74: modules] Error 2

@matkam
Copy link

matkam commented Jan 24, 2026

Never mind. I see this is completely not compatible with newer kernels and you disable it here: https://github.com/InterLinked1/phreakscript/blob/master/patches/vpmadt032_disable.diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vpmadt032: Shipped binaries no longer copied to object files by kbuild

2 participants