8000 rp2/CMakeLists.txt: Allow a board to override PICO_BOARD. · DEVBOX10/micropython@4693cf9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4693cf9

Browse files
committed
rp2/CMakeLists.txt: Allow a board to override PICO_BOARD.
Signed-off-by: Damien George <damien@micropython.org>
1 parent d4997c7 commit 4693cf9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ports/rp2/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ if(NOT MICROPY_BOARD)
2525
set(MICROPY_BOARD PICO)
2626
endif()
2727

28-
# Set the PICO_BOARD if it's not already set.
29-
if(NOT PICO_BOARD)
30-
string(TOLOWER ${MICROPY_BOARD} PICO_BOARD)
31-
endif()
32-
3328
# Set the board directory and check that it exists.
3429
if(NOT MICROPY_BOARD_DIR)
3530
set(MICROPY_BOARD_DIR ${MICROPY_PORT_DIR}/boards/${MICROPY_BOARD})
@@ -41,6 +36,11 @@ endif()
4136
# Include board config
4237
include(${MICROPY_BOARD_DIR}/mpconfigboard.cmake)
4338

39+
# Set the PICO_BOARD if it's not already set (allow a board to override it).
40+
if(NOT PICO_BOARD)
41+
string(TOLOWER ${MICROPY_BOARD} PICO_BOARD)
42+
endif()
43+
4444
# Include component cmake fragments
4545
include(${MICROPY_DIR}/py/py.cmake)
4646
include(${MICROPY_DIR}/extmod/extmod.cmake)

0 commit comments

Comments
 (0)
0