Skip to content

Commit 56d362c

Browse files
committed
still trying to fix the compiler warnings.
1 parent ae6f3e1 commit 56d362c

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
import lvgl as lv # NOQA
3+

builder/macOS.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323

2424
def parse_args(extra_args, lv_cflags, board):
25+
26+
print('macOS: parse_args')
2527
global heap_size
2628
unix_argParser = ArgumentParser(prefix_chars='-')
2729

@@ -49,6 +51,8 @@ def parse_args(extra_args, lv_cflags, board):
4951

5052

5153
def build_commands(_, extra_args, script_dir, lv_cflags, board):
54+
print('macOS: build_commands')
55+
5256
global variant
5357
variant = board
5458

@@ -83,11 +87,13 @@ def build_commands(_, extra_args, script_dir, lv_cflags, board):
8387

8488

8589
def build_manifest(target, script_dir, lvgl_api, displays, indevs, frozen_manifest):
90+
print('macOS: build_manifest')
91+
8692
global SCRIPT_PATH
8793

8894
SCRIPT_PATH = script_dir
8995

90-
update_mphalport(target)
96+
update_mphalport('unix')
9197

9298
manifest_path = 'lib/micropython/ports/unix/variants/manifest.py'
9399

@@ -98,16 +104,22 @@ def build_manifest(target, script_dir, lvgl_api, displays, indevs, frozen_manife
98104

99105

100106
def clean():
107+
print('macOS: clean')
108+
101109
spawn(clean_cmd)
102110

103111

104112
def _run(c, spinner=False, cmpl=False):
113+
print('macOS - COMMAND:', c)
114+
105115
res, _ = spawn(c, spinner=spinner, cmpl=cmpl)
106116
if res != 0:
107117
sys.exit(res)
108118

109119

110120
def build_sdl():
121+
print('macOS: build_sdl')
122+
111123
global variant
112124

113125
if variant is None:
@@ -137,6 +149,8 @@ def build_sdl():
137149

138150

139151
def submodules():
152+
print('macOS: submodules')
153+
140154
if not os.path.exists('lib/SDL/include'):
141155
cmd_ = [
142156
'git',
@@ -157,6 +171,8 @@ def submodules():
157171

158172

159173
def compile(): # NOQA
174+
print('macOS: compile')
175+
160176
main_path = 'lib/micropython/ports/unix/main.c'
161177

162178
with open(main_path, 'rb') as f:

0 commit comments

Comments
 (0)