Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
4693cf90
Commit
4693cf90
authored
Jan 06, 2022
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rp2/CMakeLists.txt: Allow a board to override PICO_BOARD.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
d4997c7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ports/rp2/CMakeLists.txt
ports/rp2/CMakeLists.txt
+5
-5
No files found.
ports/rp2/CMakeLists.txt
View file @
4693cf90
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment