ver: print PX4_BOARD_LABEL for 'ver all'

This commit is contained in:
Beat Küng
2021-11-11 08:38:42 -05:00
committed by Daniel Agar
parent dbacdedad1
commit fdf8461452
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -79,6 +79,7 @@ add_library(version version.c)
target_compile_definitions(version
PUBLIC
PX4_BOARD_NAME="${PX4_BOARD_NAME}"
PX4_BOARD_LABEL="${PX4_BOARD_LABEL}"
PRIVATE
BUILD_URI=${BUILD_URI}
)
+8
View File
@@ -56,6 +56,14 @@ static inline const char *px4_board_name(void)
return PX4_BOARD_NAME;
}
/**
* get the board build target variant
*/
static inline const char *px4_board_target_label(void)
{
return PX4_BOARD_LABEL;
}
/**
* get the board sub type
*/