kernel config - MarekBykowski/readme GitHub Wiki

  1. bitbake linux-yocto -c kernel_configme -f
  2. The resulting .config file is located in ${WORKDIR} under the linux-${MACHINE}-${KTYPE}-build directory
  3. Copy and rename the resulting .config file (e.g. config.orig)
  4. Run the menuconfig command: bitbake linux-yocto -c menuconfig
  5. Prepare a configuration fragment based on the differences between the two files
    diff -Nurp config.orig .config | sed -n "s/^\+//p" > frag.cfg
  6. Prepare configuration fragments. The resulting file fragment.cfg is placed in the ${WORKDIR} bitbake linux-yocto -c diffconfig
  7. 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/
  8. (Build specific) vim ../layers/meta-arm/meta-arm-bsp/recipes-kernel/linux/arm-platforms-kmeta/bsp/arm-platforms/fvp.scc and add kconf hardware fvp/frag.cfg
  9. 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"
  1. Validate bitbake linux-yocto -c kernel_configcheck -f
  2. bitbake linux-yocto -c kernel_configme -f and check if ${WORKDIR}/linux-${MACHINE}-${KTYPE}-build/.config includes your change/s