Bug#975571: linux: No rule to make target 'scripts/module.lds' while building out-of-tree modules
Hi,
On Tue, Nov 24, 2020 at 07:05:24PM +0100, Salvatore Bonaccorso wrote:
> Control: tags -1 + confirmed
>
> Hi Andreas,
>
> On Mon, Nov 23, 2020 at 06:46:26PM +0100, Andreas Beckmann wrote:
> > Source: linux
> > Version: 5.10~rc4-1~exp1
> > Severity: important
> >
> > Hi,
> >
> > building out-of-tree modules againt Linux 5.10 headers in experimental fails with
> >
> > No rule to make target 'scripts/module.lds', needed by '/path/to/module.ko'. Stop.
> >
> > e.g.
> >
> > make[3]: *** No rule to make target 'scripts/module.lds', needed by '/var/lib/dkms/r8168/8.048.03/build/r8168.ko'. Stop.
> >
> > make[4]: *** No rule to make target 'scripts/module.lds', needed by '/var/lib/dkms/bbswitch/0.8/build/bbswitch.ko'. Stop.
> >
> > make[5]: *** No rule to make target 'scripts/module.lds', needed by '/usr/src/modules/nvidia-kernel/nvidia-drm.ko'. Stop.
>
> Thanks for reporting.
>
> We need to do something about the following upstream change,
> 596b0474d3d9 ("kbuild: preprocess module linker script")[1].
So in the end possible solution covers that scripts/module.lds lands
in linux-kbuild-$(VERSION) with possible fix via debian/rules.real
targets. I'm not sure what the best approach is to solve this.
Further references:
https://lore.kernel.org/lkml/20201125084714.GA11793@linux-8ccs/
https://github.com/openSUSE/kernel-source/commit/fe37c160c33dc09edff1781810aa098a2c316e20
Regards,
Salvatore
Reply to: