Set the superiotool version number from svn at build time.

Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2852 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ulf Jordan
2007-10-13 18:06:12 +00:00
committed by Uwe Hermann
parent 45c1556df9
commit 39a5bf74ef
3 changed files with 9 additions and 9 deletions

View File

@@ -170,12 +170,7 @@ void probing_for(const char *vendor, const char *info, uint16_t port)
static void print_version(void)
{
char tmp[80];
strncpy((char *)&tmp,
(const char *)&SUPERIOTOOL_VERSION[6],
strlen(SUPERIOTOOL_VERSION) - 8);
printf("superiotool r%s\n", (char *)&tmp);
printf("superiotool r%s\n", SUPERIOTOOL_VERSION);
}
int main(int argc, char *argv[])