Tracking changes to image contents in Yocto - buildhistory

Yocto provides "buildhistory" to keep track of changes to the image.  To enable "buildhistory", need to add the following lines in the local.conf file.

INHERIT += "buildhistory"
BUILDHISTORY_COMMIT = "1"

INHERIT method includes the buildhistory class hooks in the building process.
BUILDHISTORY_COMMIT enables bitbake to create a new GIT Commit in the buildhistory process. During the first build with the above changes, "buildhistory" directory is created, which has the git repository inside it.


You can see I have added the above lines to the local.conf file and modified the core-image-minimal image to include 'usbutils' package.

Now, to find out what all has changed, you can use the script provided by poky: 'buildhistory-diff'
To use this script you need to have installed GitPython installed. If you get the following error:
"Please install GitPython (python3-git) 0.3.4 or later in order to use this script", run the following command: "sudo pip3 install gitpython"




Comments

Popular posts from this blog

bb.utils.contains yocto

Connecting Serial ports of two Ubuntu VMWare Virtual Machines

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig