[OpenBIOS] [PATCH v3] Add revision number to banner

Programmingkid programmingkidx at gmail.com
Sat Dec 5 05:13:35 CET 2015

On Dec 3, 2015, at 5:11 PM, Mark Cave-Ayland wrote:

> On 02/12/15 20:20, Programmingkid wrote:
>> The banner is displayed at the start of openbios with the version and build
>> time. This patch adds the revision number for easier identification of binary
>> version. It would look like this: 
>> Welcome to OpenBIOS v1.1 (Revision 1358) built on Nov 28 2015 18:22
>> If the user doesn't have the svn command, git command,
>> or an svn repo, the word "unknown" is used instead of
>> the number. 
>> Signed-off-by: John Arbuckle <programmingkidx at gmail.com>
>> New in revision 3:
>> Added support for a variable length repo number.
>> New in revision 2:
>> Added support for git if the repo is being managed by it. 
> Hmmmm I'm still not 100% convinced this patch is the right way to go,
> particularly with git where we have different sets of commit ids
> depending upon whether you have a local git-svn checkout or a checkout
> from the (more popular) git.qemu.org.

Knowing the commit id that the binary is based on is very helpful in determining what features the binary would have. If the new banner text makes you uncomfortable, this patch could be changed so that only the word revision is added to OpenBIOS. I'd be more than happy to make this change if you want. That way the user could still find out the revision their binary is based on.

More information about the OpenBIOS mailing list