diff options
| author | Dryw Wade <dryw.wade@sparkfun.com> | 2025-07-31 15:37:46 -0600 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-08-01 16:20:49 +1000 |
| commit | c9b52b2b7f164745eda7210ccf6640fce3737f59 (patch) | |
| tree | 4db323a400933640e5c2953d3e4a54f36d2384ea | |
| parent | a9a606bf5d518375efb2b836a07df7d95dbd7b56 (diff) | |
rp2/CMakeLists.txt: Fix flash size check logic.
Follow up to 6bfb83e30aa28e7bbfb0f77f378da05b32574f3d, if the variable
`PICO_FLASH_SIZE_BYTES` is not a numeric constant, eg "(2 * 1024 * 1024)",
then it won't pass the GREATER check. So change the if logic to just test
if it's defined.
Signed-off-by: Dryw Wade <dryw.wade@sparkfun.com>
| -rw-r--r-- | ports/rp2/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt index 49ba8d77d..120d07bcc 100644 --- a/ports/rp2/CMakeLists.txt +++ b/ports/rp2/CMakeLists.txt @@ -528,7 +528,7 @@ target_link_options(${MICROPY_TARGET} PRIVATE -Wl,--wrap=runtime_init_clocks ) -if(PICO_FLASH_SIZE_BYTES GREATER 0) +if(DEFINED PICO_FLASH_SIZE_BYTES) target_link_options(${MICROPY_TARGET} PRIVATE -Wl,--defsym=__micropy_flash_size__=${PICO_FLASH_SIZE_BYTES} ) |
