File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 13
13
#endif // ifndef SET_BUILD_GIT_HEAD
14
14
15
15
String get_binary_filename () {
16
- # ifndef CORE_POST_2_5_0
17
- return F (" firmware.bin" );
18
- #else
16
+ # if !defined( CORE_POST_2_5_0) && !defined(ESP32)
17
+ return F (" firmware.bin" );
18
+ #else
19
19
return F (SET_BUILD_BINARY_FILENAME);
20
- #endif
20
+ #endif
21
21
}
22
22
23
23
String get_build_time () {
@@ -39,17 +39,17 @@ String get_build_origin() {
39
39
}
40
40
41
41
String get_build_platform () {
42
- # ifndef CORE_POST_2_5_0
42
+ # if !defined( CORE_POST_2_5_0) && !defined(ESP32)
43
43
return " " ;
44
44
#else
45
45
return F (SET_BUILD_PLATFORM);
46
- #endif
46
+ #endif
47
47
}
48
48
49
49
String get_git_head () {
50
- # ifndef CORE_POST_2_5_0
51
- return " " ;
52
- #else
50
+ # if !defined( CORE_POST_2_5_0) && !defined(ESP32)
51
+ return " " ;
52
+ #else
53
53
return F (SET_BUILD_GIT_HEAD);
54
- #endif
54
+ #endif
55
55
}
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ def get_git_description():
17
17
try :
18
18
from pygit2 import Repository
19
19
try :
20
- return Repository ('.' ).head .shorthand
20
+ repo = Repository ('.' )
21
+ return "'{0}_{1}'" .format (repo .head .shorthand , repo .revparse_single ('HEAD' ).short_id )
21
22
except :
22
23
return 'No_.git_dir'
23
24
except ImportError :
@@ -79,4 +80,4 @@ def gen_compiletime_defines(node):
79
80
print ("\u001b [32m ------------------------------- \u001b [0m" )
80
81
81
82
82
- env .AddBuildMiddleware (gen_compiletime_defines )
83
+ env .AddBuildMiddleware (gen_compiletime_defines )
You can’t perform that action at this time.
0 commit comments