Just the build directory, obviously.
Where do I mount tmpfs?
As I read the eclass, it includes O= with appropriate values, in each invocation of make. As I read Documentation/admin-guide/README.rst, this should have the same effect. If I recall correctly, O= is only respected when set on the make command line. KBUILD_OUTPUT is respected when put in the process environment.mutiny wrote:Out of curiosity, if portage is configured for tmpfs, does it build gentoo-kernel in tmpfs automatically with $KBUILD_OUTPUT or otherwise itself?
This has worked for me for years. Without further details of what you did, there is nothing I can do to debug your environment.leyvi wrote:This doesn't work for me. It says the build is messed up, and tells me to run a make thing called mrproper or something like that.Hu wrote:It is normally put in the environment.

Code: Select all
mount -t tmpfs -o size=2G tmpfs ${MNT_POINT}
zcat /proc/config.gz > ${MNT_POINT}/.config
make mrproper -C ${KERNEL_SRC_PATH}
make -C ${KERNEL_SRC_PATH} O=${MNT_POINT} oldconfig
make -C ${KERNEL_SRC_PATH} ${MAKEOPTS} O=${MNT_POINT}
make -C ${KERNEL_SRC_PATH} ${MAKEOPTS} O=${MNT_POINT} modules_install
umount ${MNT_POINT}
