Skip to main content
NPal.2
Associate III
Jul 2, 2021 13:01 UTC
Solved

Force re-compile local kernel changes

Hi,

I have done certain changes to support the display in the dts files.

I have modified dts files under kernel and u-boot.

I had also added certain changes in panel-simple.c file as well.

I gave a build and forgot to make some changes. So i changed those locally and gave :

bitbake st-image-weston

But this time around upon checking i found out that latest changes i made were not compiled and a new .o was not generated. How can i make sure , that local changes are compiled by yocto build system??

This topic has been closed for replies.
Mikalaj Karhin
Mikalaj KarhinBest answer
Associate II
Jul 5, 2021 11:47 UTC

It looks like you are making changes to the temporary build directory.

You need to clone the u-boot and kernel source code, make changes, create patches and add them to the layer.

6 replies

Mikalaj Karhin
Associate II
Jul 3, 2021 07:53 UTC

Hey!

From which folder did you change dts?

NPal.2
NPal.2Author
Associate III
Jul 5, 2021 11:20 UTC

Hi @Mikalaj Karhin​ : I changed the driver file : drivers/gpu/drm/panel/panel-simple.c

Mikalaj Karhin
Associate II
Jul 5, 2021 11:22 UTC

Did you create a patch and add it to a build layer?

NPal.2
NPal.2Author
Associate III
Jul 5, 2021 11:43 UTC

I directly modified the file under the kernel-source folder which was downloaded. It was a local change. I did not create patch and added it to yocto .

Mikalaj Karhin
Mikalaj KarhinBest answer
Associate II
Jul 5, 2021 11:47 UTC

It looks like you are making changes to the temporary build directory.

You need to clone the u-boot and kernel source code, make changes, create patches and add them to the layer.

NPal.2
NPal.2Author
Associate III
Jul 10, 2021 05:14 UTC

THanks @Mikalaj Karhin​ for the suggestion. Will take a look this might help.