diff options
| author | Dan Halbert <halbert@adafruit.com> | 2021-01-21 16:54:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-21 16:54:37 -0500 |
| commit | 2249a33203339803c8a0b23e80eec15d77b7f23e (patch) | |
| tree | 49fb85346b3ce60a08ad7780b8aec7fd0f72366f /tools | |
| parent | eff68b0d9fb101176a808cb68f0158e1615ed8bf (diff) | |
| parent | 9b8246f889bda79b5945c7acbd016de4886419ef (diff) | |
Merge pull request #4031 from tannewt/rp2040
Add initial RP2040 support
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/build_board_info.py | 2 | ||||
| -rw-r--r-- | tools/build_memory_info.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/build_board_info.py b/tools/build_board_info.py index ce9d45fe2..7b556ee5d 100644 --- a/tools/build_board_info.py +++ b/tools/build_board_info.py @@ -26,6 +26,7 @@ SUPPORTED_PORTS = [ "litex", "mimxrt10xx", "nrf", + "raspberrypi", "stm", ] @@ -47,6 +48,7 @@ extension_by_port = { "mimxrt10xx": HEX_UF2, "litex": DFU, "esp32s2": BIN_UF2, + "raspberrypi": UF2, } # Per board overrides diff --git a/tools/build_memory_info.py b/tools/build_memory_info.py index 26697b974..89aedf0f4 100644 --- a/tools/build_memory_info.py +++ b/tools/build_memory_info.py @@ -9,10 +9,10 @@ import re import sys # Handle size constants with K or M suffixes (allowed in .ld but not in Python). -K_PATTERN = re.compile(r'([0-9]+)K') +K_PATTERN = re.compile(r'([0-9]+)[kK]') K_REPLACE = r'(\1*1024)' -M_PATTERN = re.compile(r'([0-9]+)M') +M_PATTERN = re.compile(r'([0-9]+)[mM]') M_REPLACE = r'(\1*1024*1024)' print() |
