[yocto] How to compute SRCREV for a github project

Laurentiu-Cristian Duca laurentiu.duca at gmail.com
Tue Nov 6 08:10:22 PST 2018


Dear yocto community,

  A basic question regarding yocto and git.
How to compute the SRCREV for the linux-raspberrypi_4.14.bb recipe:
$ cat meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.14.bb
LINUX_VERSION ?= "4.14.68"
SRCREV = "8c8666ff6c1254d325cfa300d16f9928b3f31fc0"
SRC_URI = "git://github.com/raspberrypi/linux.git;branch=rpi-4.14.y"
...

  If I want to change to LINUX_VERSION 4.14.74 (for example),
how will I compute or get the SRCREV for this version
(please note that I am not interested in AUTOREV)?
The command "git log -50" lists the latest 50 commits
and a 40-bit signature for each commit, but does not show the kernel version.

  I have searched google but no response found.

Thank you and best regards,
Laurentiu-Cristian Duca


More information about the yocto mailing list