Sometimes when we debug the code, we need to know which version we are
authorZheng Bao <zheng.bao@amd.com>
Wed, 22 Apr 2009 23:27:25 +0000 (23:27 +0000)
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Wed, 22 Apr 2009 23:27:25 +0000 (23:27 +0000)
working on.
Add the svn revision to the coreboot version string.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4191 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/config/Options.lb

index 7bcba27e04b1dfdf583c9adc027c3144a615fb0d..ee6ccb506e1c10c1a688e09837d7676ebe20062b 100644 (file)
@@ -97,7 +97,7 @@ define OBJCOPY
        comment "Objcopy command"
 end
 define COREBOOT_VERSION
-       default "2.0.0"
+       default "2.0.0-r$(shell if [ -f `which svnversion` ]; then svnversion $(TOP); fi)"
        export always
        format "\"%s\""
        comment "coreboot version"