[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#981492: linux-source-5.10: Module-only builds failing since 39a8b293



Hello 小太,

just to let you know that your bug report was useful anyway:

I ran into the same issue, and needed the same fix. In fact, my build script had
the "make modules_prepare" commented out, with a "# TODO: is this needed?" comment
above. Apparently, it wasn't needed until Linux 5.10.

So thank you very much for posting this bug and the solution, and including the
full error message in the description - that led me to this bug report, and saved
me hours of hunting down the issue.

Best Regards,
-Robert

On Mon, 15 Feb 2021 22:39:36 +1100 =?UTF-8?B?4oCN5bCP5aSq?= <nospam@kota.moe> wrote:
> Apologies - I jumped to conclusions in my original bug report
> 
> After applying your patch and seeing it did not fix the issue, I did a bit
> of investigation myself.
> It turns out the problem wasn't in the linked commit, but actually part of
> the upstream kernel:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.11&id=596b0474d3d9b1242eab713f84d8873f9887d980
> 
> The real problem isn't in the code however, but in my Makefile.
> I didn't run the "modules_prepare" target before trying to build a module,
> despite it being documented:
> https://www.kernel.org/doc/Documentation/kbuild/modules.txt
> 
> Adding that target to my Makefile resolved the issue, without any changes
> to the linux-source package.
> So this bug is now invalid


Reply to: