Skip to content
Commit e072defa authored by Hieu Vu's avatar Hieu Vu Committed by Chau Ly
Browse files

meta-ampere: support software revision using Ampere format



OpenBMC uses os-release.bbappend to control the FW version, which is
the output of 'git describe --dirty --long'. The format of this command's
output is: {annotated-tag-name}-{num-commits-to-tag}-{current-commit-hash}.
'-dirty' will be appended to the output if the working space is not clean.

In addition, git describe --dirty --long only find an annotated tag, not
lightweight tag which will miss internal release.

This commit updates the rule to extract the right revision from Ampere
build and release tag.

Tested: tag with v1.02.100-ampere and check WebUI display revision
1.02.100.

Signed-off-by: default avatarThu Cao <thcao@os.amperecomputing.com>
Signed-off-by: default avatarChau Ly <chaul@amperecomputing.com>
Change-Id: I6d5e6d2dcdb4988809f71d48a5b0e2710e7810d2
parent 00a462d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment