22
22
23
23
24
24
def parse_args (extra_args , lv_cflags , board ):
25
+
26
+ print ('macOS: parse_args' )
25
27
global heap_size
26
28
unix_argParser = ArgumentParser (prefix_chars = '-' )
27
29
@@ -49,6 +51,8 @@ def parse_args(extra_args, lv_cflags, board):
49
51
50
52
51
53
def build_commands (_ , extra_args , script_dir , lv_cflags , board ):
54
+ print ('macOS: build_commands' )
55
+
52
56
global variant
53
57
variant = board
54
58
@@ -83,11 +87,13 @@ def build_commands(_, extra_args, script_dir, lv_cflags, board):
83
87
84
88
85
89
def build_manifest (target , script_dir , lvgl_api , displays , indevs , frozen_manifest ):
90
+ print ('macOS: build_manifest' )
91
+
86
92
global SCRIPT_PATH
87
93
88
94
SCRIPT_PATH = script_dir
89
95
90
- update_mphalport (target )
96
+ update_mphalport ('unix' )
91
97
92
98
manifest_path = 'lib/micropython/ports/unix/variants/manifest.py'
93
99
@@ -98,16 +104,22 @@ def build_manifest(target, script_dir, lvgl_api, displays, indevs, frozen_manife
98
104
99
105
100
106
def clean ():
107
+ print ('macOS: clean' )
108
+
101
109
spawn (clean_cmd )
102
110
103
111
104
112
def _run (c , spinner = False , cmpl = False ):
113
+ print ('macOS - COMMAND:' , c )
114
+
105
115
res , _ = spawn (c , spinner = spinner , cmpl = cmpl )
106
116
if res != 0 :
107
117
sys .exit (res )
108
118
109
119
110
120
def build_sdl ():
121
+ print ('macOS: build_sdl' )
122
+
111
123
global variant
112
124
113
125
if variant is None :
@@ -137,6 +149,8 @@ def build_sdl():
137
149
138
150
139
151
def submodules ():
152
+ print ('macOS: submodules' )
153
+
140
154
if not os .path .exists ('lib/SDL/include' ):
141
155
cmd_ = [
142
156
'git' ,
@@ -157,6 +171,8 @@ def submodules():
157
171
158
172
159
173
def compile (): # NOQA
174
+ print ('macOS: compile' )
175
+
160
176
main_path = 'lib/micropython/ports/unix/main.c'
161
177
162
178
with open (main_path , 'rb' ) as f :
0 commit comments