Solved
How to customize kernel configuration with OpenSTLinux and Yocto?
Following the tutorial on How to customize the Linux kernel I made steps as below:
- Create a custom layer.
- Add it to the build configuration in bblayers.conf.
- Create a fragment.config with bitbake menuconfig and put it into my-layer/recipes-kernel/linux/linux-stm32mp/5.15/ as the kernel version is 5.15.
- Create a my-layer/recipes-kernel/linux/linux-stm32mp_%.bbappend file as advised in the tutorial:
FILESEXTRAPATHS:prepend := "${THISDIR}:${THISDIR}/${PN}:"
KERNEL_CONFIG_FRAGMENTS:append = "${WORKDIR}/fragments/${LINUX_VERSION}/fragment-custom.config"
SRC_URI:append = " file://${LINUX_VERSION}/fragment-custom.config;subdir=fragments "It seems that the kernel configuration wasn't applied at all, is there something that I'm doing wrong?
Without the FILEXTRAPATHS line, the file couldn't be found, yocto didn't look into my-layer at all.
