1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Bake in the board information at build time (#12089)

- if provided.
This commit is contained in:
J Blackman 2022-12-27 16:18:57 +11:00 committed by GitHub
parent f3404bfcbb
commit 281bfb4bf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 10 deletions

View file

@ -30,16 +30,6 @@
#define FC_VERSION_STRING STR(FC_VERSION_MAJOR) "." STR(FC_VERSION_MINOR) "." STR(FC_VERSION_PATCH_LEVEL)
#ifndef __BOARD__
#define BOARD_NAME FC_FIRMWARE_NAME
#else
#define BOARD_NAME __BOARD__
#endif
#ifndef MANUFACTURER_ID
#define MANUFACTURER_ID FC_FIRMWARE_IDENTIFIER
#endif
extern const char* const targetName;
#define GIT_SHORT_REVISION_LENGTH 7 // lower case hexadecimal digits.