How to change Linux Kernel Configuration in Yocto
If there is need to enable or disable some configuration from the linux recipe which your BSP provides, create a new layer in Yocto.
In this layer create the following folders: sources/meta-<layer_name>/recipes-kernel/linux
In this folder create the following recipe (.bbappend) : touch linux-intel_%.bbappend
Add the following two lines in this file
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://config.cfg"
In this layer create the following folders: sources/meta-<layer_name>/recipes-kernel/linux
In this folder create the following recipe (.bbappend) : touch linux-intel_%.bbappend
Add the following two lines in this file
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://config.cfg"
Then create files folder in that location:
$mkdir files && cd files
After this create config.cfg file.
$touch config.cfg
Add all your changes into this.
CONFIG_R8169=y
CONFIG_I2C_CHARDEV=y
CONFIG_EEPROM_AT24=y
# CONFIG_USB_SERIAL_CP210X is not set
That's all, now this settings will override the default configuration.
Comments
Post a Comment