gitlab build number added
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -6,5 +6,5 @@
|
||||
#define KERNEL_VERSION "unknown"
|
||||
#define MAJOR_VERSION "unknown"
|
||||
#define MINOR_VERSION "unknown"
|
||||
|
||||
#define BUILD_NUMBER "unknown"
|
||||
#endif /* VERSION_H */
|
||||
|
Reference in New Issue
Block a user