3.82. linux-5.13.12
#!/bin/sh # Copyright © 1999-2022 Gerard Beekmans # Copyright © 2017-2022 Random Crew # Distributed under the terms of MIT License.
Configuration
make menuconfig command causes interactive configuration of kernel. Here non-interactive command make defconfig is used.
To change kernel settings, they should be saved beforehand in patches for the package and then installed as new config for make defconfig.
src_config()
{
make mrproper
make defconfig
}
Compilation
src_compile()
{
make ${MAKEOPTS}
}
Installation
src_install()
{
make modules_install ${MAKEOPTS} INSTALL_MOD_PATH=${D}
mkdir -p ${D}/boot/
cp arch/x86/boot/bzImage ${D}/boot/vmlinuz-${PV}-lfs-${LFS_VERSION}
cp System.map ${D}/boot/System.map-${PV}
cp .config ${D}/boot/config-${PV}
install -d ${D}${PREFIX}/share/doc/${P}
cp -r Documentation/* ${D}${PREFIX}/share/doc/${P}
install -d ${D}/etc/modprobe.d/
cp -f ${PATCHDIR}/files/usb.conf ${D}/etc/modprobe.d/
}
Build code
Other files
Links