kernel config - MarekBykowski/readme GitHub Wiki
bitbake linux-yocto -c kernel_configme -f
- The resulting .config file is located in
${WORKDIR}
under thelinux-${MACHINE}-${KTYPE}-build
directory - Copy and rename the resulting .config file (e.g. config.orig)
- Run the menuconfig command:
bitbake linux-yocto -c menuconfig
Prepare a configuration fragment based on the differences between the two files
diff -Nurp config.orig .config | sed -n "s/^\+//p" > frag.cfg
- Prepare configuration fragments. The resulting file fragment.cfg is placed in the ${WORKDIR}
bitbake linux-yocto -c diffconfig
- Copy config fragment to where all the fragments (build specific)
cp frag.cfg ../layers/meta-arm/meta-arm-bsp/recipes-kernel/linux/arm-platforms-kmeta/bsp/arm-platforms/fvp/
- (Build specific)
vim ../layers/meta-arm/meta-arm-bsp/recipes-kernel/linux/arm-platforms-kmeta/bsp/arm-platforms/fvp.scc
and addkconf hardware fvp/frag.cfg
- Another option is to put it to $PN (Package Name) or create a *.bbappend and add it in there:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://fragment.cfg"
Note, if you want to create a .bbappend check if they are parsed
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
- Validate
bitbake linux-yocto -c kernel_configcheck -f
bitbake linux-yocto -c kernel_configme -f
and check if${WORKDIR}/linux-${MACHINE}-${KTYPE}-build/.config
includes your change/s