summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/rp2/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt
index c87ccf0d6..0009ab2cd 100644
--- a/ports/rp2/CMakeLists.txt
+++ b/ports/rp2/CMakeLists.txt
@@ -25,11 +25,6 @@ if(NOT MICROPY_BOARD)
set(MICROPY_BOARD PICO)
endif()
-# Set the PICO_BOARD if it's not already set.
-if(NOT PICO_BOARD)
- string(TOLOWER ${MICROPY_BOARD} PICO_BOARD)
-endif()
-
# Set the board directory and check that it exists.
if(NOT MICROPY_BOARD_DIR)
set(MICROPY_BOARD_DIR ${MICROPY_PORT_DIR}/boards/${MICROPY_BOARD})
@@ -41,6 +36,11 @@ endif()
# Include board config
include(${MICROPY_BOARD_DIR}/mpconfigboard.cmake)
+# Set the PICO_BOARD if it's not already set (allow a board to override it).
+if(NOT PICO_BOARD)
+ string(TOLOWER ${MICROPY_BOARD} PICO_BOARD)
+endif()
+
# Include component cmake fragments
include(${MICROPY_DIR}/py/py.cmake)
include(${MICROPY_DIR}/extmod/extmod.cmake)