aboutsummaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
authorGareth McMullin2015-04-03 20:21:33 -0700
committerGareth McMullin2015-04-03 20:21:33 -0700
commit97824b7f0230a5fe0e101a444d4ba7d6f625f01d (patch)
treed5f63db06ae65642005513c42e9da3e9b0330398 /src/command.c
parent6f5b1873d7b986fe7b3bc1f267bae9f7649630a5 (diff)
Use git describe for version in generated header file.
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index f271085..64e4ed6 100644
--- a/src/command.c
+++ b/src/command.c
@@ -29,6 +29,7 @@
#include "target.h"
#include "morse.h"
#include "adiv5.h"
+#include "version.h"
#ifdef PLATFORM_HAS_TRACESWO
# include "traceswo.h"
@@ -106,8 +107,8 @@ int command_process(target *t, char *cmd)
bool cmd_version(void)
{
- gdb_out("Black Magic Probe (Firmware 1.5" VERSION_SUFFIX ", build " BUILDDATE ")\n");
- gdb_out("Copyright (C) 2011 Black Sphere Technologies Ltd.\n");
+ gdb_out("Black Magic Probe (Firmware " FIRMWARE_VERSION ")\n");
+ gdb_out("Copyright (C) 2015 Black Sphere Technologies Ltd.\n");
gdb_out("License GPLv3+: GNU GPL version 3 or later "
"<http://gnu.org/licenses/gpl.html>\n\n");