diff options
| author | Phil Howard <phil@gadgetoid.com> | 2024-07-03 15:15:16 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-08-02 16:16:23 +1000 |
| commit | 11becbe22321ca1d7bd631144976f246175730ce (patch) | |
| tree | 43b0ec61ddc18728938490f60cf58d5454e56c2a | |
| parent | 6d054247546eb278942a407e0de7e72b5f66d54f (diff) | |
rp2/CMakeLists.txt: Add MICROPY_DEF_BOARD to compile definitions.
Add MICROPY_DEF_BOARD as per esp32 port, allows board variants to override
the board name with:
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="New Board Name"
)
Signed-off-by: Phil Howard <phil@gadgetoid.com>
| -rw-r--r-- | ports/rp2/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt index 8fff42514..904925ae3 100644 --- a/ports/rp2/CMakeLists.txt +++ b/ports/rp2/CMakeLists.txt @@ -493,6 +493,7 @@ set_source_files_properties( ) target_compile_definitions(${MICROPY_TARGET} PRIVATE + ${MICROPY_DEF_BOARD} FFCONF_H=\"${MICROPY_OOFATFS_DIR}/ffconf.h\" LFS1_NO_MALLOC LFS1_NO_DEBUG LFS1_NO_WARN LFS1_NO_ERROR LFS1_NO_ASSERT LFS2_NO_MALLOC LFS2_NO_DEBUG LFS2_NO_WARN LFS2_NO_ERROR LFS2_NO_ASSERT |
