Back Port of Git Versioning - without side effects Part 1

This commit is contained in:
David Sidrane
2015-06-12 06:49:15 -10:00
parent bcc49268ca
commit 17fddb1556
5 changed files with 38 additions and 12 deletions
+2
View File
@@ -41,6 +41,8 @@
#include <stdint.h>
#include "build_git_version.h"
__BEGIN_DECLS
__EXPORT extern const char* px4_git_version;
+1 -2
View File
@@ -52,8 +52,7 @@ SRCS = \
mcu_version.c \
bson/tinybson.c \
circuit_breaker.cpp \
circuit_breaker_params.c \
$(BUILD_DIR)git_version.c
circuit_breaker_params.c
ifeq ($(PX4_TARGET_OS),nuttx)
SRCS += err.c \
+3
View File
@@ -57,6 +57,9 @@ static const char sz_ver_all_str[] = "all";
static const char mcu_ver_str[] = "mcu";
static const char mcu_uid_str[] = "uid";
const char* px4_git_version = PX4_GIT_VERSION_STR;
const uint64_t px4_git_version_binary = PX4_GIT_VERSION_BINARY;
static void usage(const char *reason)
{
if (reason != NULL) {