Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
InterLinked1 opened this issue Feb 23, 2025 · 0 comments · May be fixed by #79
Open

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

InterLinked1 opened this issue Feb 23, 2025 · 0 comments · May be fixed by #79

Comments

@InterLinked1
Copy link
Contributor

Following kernel commit 13b25489b6f8bd73ed65f07928f7c27a481f1820, the vpmadt032 object is no longer copied from the binary blob (.o_shipped) by the kernel kbuild rule for some reason.

Can be manually worked around by running a command like the following and continuing the build:

MY_DAHDI_ARCH=x86_64
cp -n drivers/dahdi/vpmadt032_loader/vpmadt032_${MY_DAHDI_ARCH}.o_shipped drivers/dahdi/vpmadt032_loader/vpmadt032_${MY_DAHDI_ARCH}.o
  LD [M]  xpp/xpd_pri.o
  LD [M]  xpp/xpd_bri.o
  CC [M]  wcaxx-base.o
  LD [M]  xpp/xpd_echo.o
  CC [M]  wctdm.o
  VERIFY  xpp/init_card_1_30
  VERIFY  xpp/init_card_2_30
  VERIFY  xpp/init_card_3_30
  VERIFY  xpp/init_card_4_30
  HOSTCC  xpp/print_fxo_modes.o
  HOSTLD  xpp/print_fxo_modes
  GEN     xpp/init_fxo_modes
  CHECK   xpp/init_card_2_30
  CC [M]  wct1xxp.o
  CC [M]  wcte11xp.o
  CC [M]  wcfxo.o
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
./makefw pciradio.rbt radfw > radfw.h
Loaded 42096 bytes from file
  CC [M]  dahdi_echocan_jpah.o
  CC [M]  dahdi_echocan_sec.o
  CC [M]  dahdi_echocan_sec2.o
  CC [M]  dahdi_echocan_kb1.o
  CC [M]  dahdi_echocan_mg2.o
  CC [M]  vpmadt032_loader/dahdi_vpmadt032_loader.o
make[4]: *** No rule to make target 'vpmadt032_loader/vpmadt032_x86_64.o', needed by 'dahdi_vpmadt032_loader.o'.  Stop.
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-next/Makefile:1988: .] Error 2
make[2]: *** [/usr/src/linux-next/Makefile:251: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/dahdi-linux-3.4.0/drivers/dahdi'
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-next'
make: *** [Makefile:74: modules] Error 2
DAHDI Linux compilation failed, aborting install
InterLinked1 added a commit to InterLinked1/dahdi-linux that referenced this issue Feb 23, 2025
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 issue 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
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 a pull request may close this issue.

1 participant