Skip to content

Commit 87a1b24

Browse files
committed
updating the RP2 SPI
1 parent 82c59cf commit 87a1b24

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

builder/macOS.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def parse_args(extra_args, lv_cflags, board):
6161

6262
def build_commands(_, extra_args, script_dir, lv_cflags, board):
6363
global variant
64+
65+
if board is None:
66+
board = 'standard'
67+
6468
variant = board
6569

6670
unix_cmd.append(f'{script_dir}/lib/micropython/ports/unix')

builder/unix.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def parse_args(extra_args, lv_cflags, board):
6161

6262
def build_commands(_, extra_args, script_dir, lv_cflags, board):
6363
global variant
64+
65+
if board is None:
66+
board = 'standard'
67+
6468
variant = board
6569

6670
unix_cmd.append(f'{script_dir}/lib/micropython/ports/unix')
@@ -256,7 +260,7 @@ def compile(): # NOQA
256260

257261
import shutil
258262

259-
src = f'lib/micropython/ports/unix/build-{variant}/micropython'
263+
src = f'lib/micropython/ports/unix/{variant}/micropython'
260264
dst = f'build/lvgl_micropy_unix'
261265
shutil.copyfile(src, dst)
262266

0 commit comments

Comments
 (0)