File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ if(NOT MICROPY_BOARD)
25
25
set (MICROPY_BOARD PICO )
26
26
endif ()
27
27
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
-
33
28
# Set the board directory and check that it exists.
34
29
if (NOT MICROPY_BOARD_DIR )
35
30
set (MICROPY_BOARD_DIR ${MICROPY_PORT_DIR} /boards/${MICROPY_BOARD} )
@@ -41,6 +36,11 @@ endif()
41
36
# Include board config
42
37
include (${MICROPY_BOARD_DIR} /mpconfigboard.cmake )
43
38
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
+
44
44
# Include component cmake fragments
45
45
include (${MICROPY_DIR} /py/py.cmake )
46
46
include (${MICROPY_DIR} /extmod/extmod.cmake )
You can’t perform that action at this time.
0 commit comments