Skip to contentSkip to conversation

SUBDIRS= replacement

DISCUSSION Christoph Hellwig 2 participants 3 messages Jan 17, 2019 Kbuild

lore
Share & tools
lore
#0 lore raw

Hi Masahiro, hi Michal,

I just got this beatiful warning:

hch@carbon:~/work/xfs$ make -j4 SUBDIRS=fs/xfs
Makefile:189: ================= WARNING ================
Makefile:190: 'SUBDIRS' will be removed after Linux 5.3
Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:192: ==========================================

Both the replacement seem to be geared towards building externals modules. But what is the replacement for just building a directory of the normal kernel tree?

E.g. what hit this is that I rebased an XFS series, and wanted to compile test just the xfs code for each step using

make -j4 SUBDIRS=fs/xfs

#1 lore raw

Hi Christoph

Quoted 10 lines · Christoph Hellwig

Hi Masahiro, hi Michal,

I just got this beatiful warning:

hch@carbon:~/work/xfs$ make -j4 SUBDIRS=fs/xfs
Makefile:189: ================= WARNING ================
Makefile:190: 'SUBDIRS' will be removed after Linux 5.3
Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:192: ==========================================
Quoted 8 lines

Both the replacement seem to be geared towards building externals modules. But what is the replacement for just building a directory of the normal kernel tree?

E.g. what hit this is that I rebased an XFS series, and wanted to compile test just the xfs code for each step using

make -j4 SUBDIRS=fs/xfs

Try:

make -j4 fs/xfs/

This is the recommend way to do so.
Let us know if you see problem with this approach.

Sam

#2 lore raw
Quoted 6 lines · Sam Ravnborg

Try:

make -j4 fs/xfs/

This is the recommend way to do so.
Let us know if you see problem with this approach.

Yes, that seems to work. I think the warning should suggest that as well, as it probably is the more common use compare to building external modules.