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>
# if the kernel version is greater than 2.6.6 then we should use
# M= instead of SUBDIRS=
- [ ${KV_MAJOR} -eq 3 ] && return 0
+ [ ${KV_MAJOR} -ge 3 ] && return 0
[ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -gt 5 -a ${KV_PATCH} -gt 5 ] && \
return 0 || return 1
}