Compiling Linux kernel into a build directory

From: James Courtier-Dutton
Date: Fri Apr 02 2021 - 14:30:26 EST


Hi,

Currently, when one builds the linux kernel, it places .o files all
over the source code tree.
Is there a way to have the linux kernel build, but place all the .o
files into a separate build folder?
Similar to how cmake or ninja work when building C source code.

One possible advantage of this approach is one can then put the build
folder on a ram disk / tmpfs and be able to compile and test much
quicker.

Kind Regards

James