mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 16:46:09 +08:00
delete unused ECL_LIB_GIT_VERSION
Since 'ecl' is nomore a git submodule, code lines related to 'ECL_LIB_GIT_VERSION' could be deleted
This commit is contained in:
@@ -119,21 +119,6 @@ header += f"""
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
# ECL
|
|
||||||
if (os.path.exists('src/lib/ecl/.git')):
|
|
||||||
ecl_git_tag = subprocess.check_output('git describe --always --tags --dirty'.split(),
|
|
||||||
cwd='src/lib/ecl', stderr=subprocess.STDOUT).decode('utf-8')
|
|
||||||
|
|
||||||
ecl_git_version = subprocess.check_output('git rev-parse --verify HEAD'.split(),
|
|
||||||
cwd='src/lib/ecl', stderr=subprocess.STDOUT).decode('utf-8').strip()
|
|
||||||
ecl_git_version_short = ecl_git_version[0:16]
|
|
||||||
|
|
||||||
header += f"""
|
|
||||||
#define ECL_LIB_GIT_VERSION_STR "{ecl_git_version}"
|
|
||||||
#define ECL_LIB_GIT_VERSION_BINARY 0x{ecl_git_version_short}
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
# Mavlink
|
# Mavlink
|
||||||
if (os.path.exists('src/modules/mavlink/mavlink/.git')):
|
if (os.path.exists('src/modules/mavlink/mavlink/.git')):
|
||||||
mavlink_git_version = subprocess.check_output('git rev-parse --verify HEAD'.split(),
|
mavlink_git_version = subprocess.check_output('git rev-parse --verify HEAD'.split(),
|
||||||
|
|||||||
@@ -345,14 +345,6 @@ uint64_t px4_firmware_version_binary(void)
|
|||||||
return PX4_GIT_VERSION_BINARY;
|
return PX4_GIT_VERSION_BINARY;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *px4_ecl_lib_version_string(void)
|
|
||||||
{
|
|
||||||
#ifdef ECL_LIB_GIT_VERSION_STRING
|
|
||||||
return ECL_LIB_GIT_VERSION_STRING;
|
|
||||||
#else
|
|
||||||
return NULL;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef MAVLINK_LIB_GIT_VERSION_BINARY
|
#ifdef MAVLINK_LIB_GIT_VERSION_BINARY
|
||||||
uint64_t px4_mavlink_lib_version_binary(void)
|
uint64_t px4_mavlink_lib_version_binary(void)
|
||||||
|
|||||||
@@ -179,11 +179,6 @@ __EXPORT const char *px4_firmware_git_branch(void);
|
|||||||
*/
|
*/
|
||||||
__EXPORT uint64_t px4_firmware_version_binary(void);
|
__EXPORT uint64_t px4_firmware_version_binary(void);
|
||||||
|
|
||||||
/**
|
|
||||||
* ECL lib version as human readable string (git tag)
|
|
||||||
*/
|
|
||||||
__EXPORT const char *px4_ecl_lib_version_string(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MAVLink lib version in binary form (first part of the git tag)
|
* MAVLink lib version in binary form (first part of the git tag)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2075,12 +2075,6 @@ void Logger::write_version(LogType type)
|
|||||||
write_info(type, "sys_toolchain", px4_toolchain_name());
|
write_info(type, "sys_toolchain", px4_toolchain_name());
|
||||||
write_info(type, "sys_toolchain_ver", px4_toolchain_version());
|
write_info(type, "sys_toolchain_ver", px4_toolchain_version());
|
||||||
|
|
||||||
const char *ecl_version = px4_ecl_lib_version_string();
|
|
||||||
|
|
||||||
if (ecl_version && ecl_version[0]) {
|
|
||||||
write_info(type, "sys_lib_ecl_ver", ecl_version);
|
|
||||||
}
|
|
||||||
|
|
||||||
char revision = 'U';
|
char revision = 'U';
|
||||||
const char *chip_name = nullptr;
|
const char *chip_name = nullptr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user