Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680976 - linux-mod.eclass: add support for kernel > 3.x in use_m()
Summary: linux-mod.eclass: add support for kernel > 3.x in use_m()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-03-19 22:30 UTC by Fabio Rossi
Modified: 2019-06-11 15:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
linux-mod.eclass.patch (linux-mod.eclass.patch,444 bytes, patch)
2019-03-19 22:30 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2019-03-19 22:30:29 UTC
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
Comment 1 Mike Pagano gentoo-dev 2019-06-11 15:12:09 UTC
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>