gitlab build number added

This commit is contained in:
tkl
2016-08-11 12:09:55 +02:00
parent c7af671814
commit 0ca5946681
3 changed files with 10 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ static void *cmd_echo_on_cb(const char *cmd);
static void *cmd_echo_off_cb(const char *cmd);
struct command cmd_kosmos_version = {
.command = "uname",
.command = "kname",
.description = "Print current kosmos version.",
.command_callback = cmd_kosmos_version_cb
};
@@ -55,6 +55,8 @@ static void *cmd_kosmos_version_cb(const char *cmd)
write(shell_object.shell_device, MAJOR_VERSION, strlen(MAJOR_VERSION));
write(shell_object.shell_device, ".", 1);
write(shell_object.shell_device, MINOR_VERSION, strlen(MINOR_VERSION));
write(shell_object.shell_device, ".", 1);
write(shell_object.shell_device, BUILD_NUMBER, strlen(BUILD_NUMBER));
return NULL;
}