Salman
Salman

Reputation: 187

How to get Yocto SRC_URI revision number?

In yocto recipe I fetch from git repo and build package, but I am interested in GIT revision number which yocto used to build package. How I can get it? Does SRCREV and SRCPV can help? Thanks.

Upvotes: 1

Views: 3910

Answers (1)

LPs
LPs

Reputation: 16213

As the manual says:

Finally, for those recipes fetched from a version control system (e.g., Git), a file exists that lists source revisions that are specified in the recipe and lists the actual revisions used during the build. Listed and actual revisions might differ when SRCREV is set to ${AUTOREV}. Here is an example assuming buildhistory/packages/qemux86-poky-linux/linux-yocto/latest_srcrev):[...]

Emphasis mine

Upvotes: 1

Related Questions