From bd560c7f139e574fb52222bceacd4a8b5d218d46 Mon Sep 17 00:00:00 2001 From: InterLinked1 <24227567+InterLinked1@users.noreply.github.com> Date: Sat, 22 Feb 2025 19:53:33 -0500 Subject: [PATCH] vpmadt032: Manually create object file by copying binary blob. Since kernel commit https://github.com/torvalds/linux/commit/13b25489b6f8bd73ed65f07928f7c27a481f1820, 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 --- drivers/dahdi/Kbuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/dahdi/Kbuild b/drivers/dahdi/Kbuild index d9d26da8..a52af9d8 100644 --- a/drivers/dahdi/Kbuild +++ b/drivers/dahdi/Kbuild @@ -134,6 +134,12 @@ endif dahdi_vpmadt032_loader-objs := vpmadt032_loader/dahdi_vpmadt032_loader.o +# Since kernel commit 13b25489b6f8bd73ed65f07928f7c27a481f1820, +# the vpmadt032 object is no longer copied from the binary blob (.o_shipped) +# by kernel kbuild for some reason. For now, do it manually: +vpmadt032_loader/vpmadt032_%.o: + cp $@_shipped $@ + ifneq ($(DAHDI_ARCH),) ifneq ($(wildcard $(src)/vpmadt032_loader/vpmadt032_$(DAHDI_ARCH).o_shipped),) $(shell touch $(KBUILD_EXTMOD)/vpmadt032_loader/.vpmadt032_$(DAHDI_ARCH).o.cmd)