Kernel (Re) Compilation

LipkeGu

New Member
Sep 21, 2022
5
0
1
Dear Guys,

I have an HP Gen8 Microserver with XEON E3 CPU and 16Gig RAM. I need to apply a few Kernel patches but
Some things also needs to be deactivated or changed but where can i find the file which contains the kernel configuration
lines like CONFIG_AMT=Y? for example...


Thanks
 
Hi,
the configuration for the installed kernels should be in /boot/config-<kernel version>-pve.
 
Hey,
Thats for the installed Kernel. but when i compile the kernel, where is the configuration file in the git repo?
 
During build it's created from pre-existing default configs in the kernel submodule, see the Makefile
Code:
cat ${BUILD_DIR}/${KERNEL_SRC}/debian.master/config/config.common.ubuntu ${BUILD_DIR}/${KERNEL_SRC}/debian.master/config/${ARCH}/config.common.${ARCH} ${BUILD_DIR}/${KERNEL_SRC}/debian.master/config/${ARCH}/config.flavour.generic > ${KERNEL_CFG_ORG}
cp ${KERNEL_CFG_ORG} ${BUILD_DIR}/${KERNEL_SRC}/.config