linux-mod.eclass: Add support for kernels >=3.X in convert_to_m
authorMike Pagano <mpagano@gentoo.org>
Tue, 11 Jun 2019 15:07:09 +0000 (11:07 -0400)
committerMike Pagano <mpagano@gentoo.org>
Tue, 11 Jun 2019 15:09:29 +0000 (11:09 -0400)
commitb7410f4912aa4955067e2fef7c3938088a05bd88
treeb713f60372dbfa045abaff7e974bfc6ee7d81b72
parent9f25ce035eb97400983d929262114359aae73b06
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>
eclass/linux-mod.eclass