Created attachment 569916 [details, diff] linux-mod.eclass.patch SUBDIRS= will be removed from Linux 5.3 The linux-mod.eclass includes the function convert_to_m() that is supposed to fix Makefiles converting them from SUBDIRS= to M=. The auxiliary function use_m(), needed by convert_to_m(), is used to verify the kernel version before deciding to patch a file. Currently the check supports only kernel <= 3 Included a simple patch to solve the issue
Thanks for the patch, Fabio. Author: Mike Pagano <mpagano@gentoo.org> Date: Tue Jun 11 11:07:09 2019 -0400 linux-mod.eclass: Add support for kernels >=3.X in convert_to_m SUBDIRS= will be removed from Linux 5.3. See bug #680976 The linux-mod.eclass includes the function convert_to_m() that is supposed to fix Makefiles converting them from SUBDIRS= to M=. The auxiliary function use_m(), needed by convert_to_m(), is used to verify the kernel version before deciding to patch a file. Currently the check supports only kernel <= 3 Thanks to Fabio Rossi Signed-off-by: Mike Pagano <mpagano@gentoo.org>