Using kernel fragments with Yocto

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

Posts: 1
Joined: Tue Oct 08, 2019 7:25 am

Using kernel fragments with Yocto

Tue Oct 08, 2019 7:57 am


We are developing a custom Yocto metalayer that is based on the sama5d27-som1-ek using the kernel recipe.

In our own layer we are using patch files for source code modifications and kernel fragment files for config modifications.
After checking out the source code for linux-at91 using devtool and running bitbake linux-at91 -c menuconfig the patches are successfully applied to the kernel source, but the config fragment file is not applied to the .config for the kernel.

The kernel recipe directory in our custom meta layer is as follows:

-----└── linux
-------├── linux-at91
-------|-----├── 0001-example-patch-1.patch
-------│-----├── 0001-example-patch-2.patch
-------│-----└── atmel_fragment.cfg
-------└── linux-at91_%.bbappend

With the content of linux-at91_%.bbappend being:


SRC_URI_append = "file://atmel_fragment.cfg"

SRC_URI += "file://0001-example-patch-1.patch \
file://0001-example-patch-1.patch \

COMPATIBLE_MACHINE = "(custom-machine)"

Does the the recipe support the use of .cfg files to append the defconfig? If so is anyone able to point out where we are going wrong in our custom layer please.

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 2 guests