2019-08-02 09:40:08

by Arend Van Spriel

[permalink] [raw]
Subject: [BUILD REGRESSION] building single .ko not working in 5.3-rc1

In previous kernel versions I could do:

make M=net/wireless cfg80211.ko

However, in 5.3-rc1 I now get:

$ make M=net/wireless cfg80211.ko
make[1]: *** No rule to make target `cfg80211.ko'. Stop.
make: *** [sub-make] Error 2

The 'modules' target is working, but sometimes there are multiple
modules and I only want to build just one explicitly. Can this option be
restored?

Regards,
Arend


2019-08-02 13:38:47

by Masahiro Yamada

[permalink] [raw]
Subject: Re: [BUILD REGRESSION] building single .ko not working in 5.3-rc1

On Fri, Aug 2, 2019 at 6:26 PM Arend Van Spriel
<[email protected]> wrote:
>
> In previous kernel versions I could do:
>
> make M=net/wireless cfg80211.ko
>
> However, in 5.3-rc1 I now get:
>
> $ make M=net/wireless cfg80211.ko
> make[1]: *** No rule to make target `cfg80211.ko'. Stop.
> make: *** [sub-make] Error 2
>
> The 'modules' target is working, but sometimes there are multiple
> modules and I only want to build just one explicitly. Can this option be
> restored?

Please test this:
https://patchwork.kernel.org/patch/11073103/


BTW,
'make M=net/wireless cfg80211.ko' still works,
but if you build a single module in the kernel tree,

make net/wireless/cfg80211.ko

is more correct.

M= is used for external modules.




> Regards,
> Arend



--
Best Regards
Masahiro Yamada