Skip to content

Commit 8791ca6

Browse files
committed
implement requested changes
1 parent d0a2106 commit 8791ca6

File tree

41 files changed

+57
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+57
-60
lines changed

docs/porting.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ as a natural "TODO" list. An example minimal build list is shown below:
5050

5151
.. code-block:: makefile
5252
53-
# Items requiring ports/<port>/common-hal implementation:
53+
# These modules are implemented in ports/<port>/common-hal:
5454
CIRCUITPY_MICROCONTROLLER = 0 # Typically the first module to create
5555
CIRCUITPY_DIGITALIO = 0 # Typically the second module to create
5656
CIRCUITPY_ANALOGIO = 0
@@ -67,10 +67,11 @@ as a natural "TODO" list. An example minimal build list is shown below:
6767
CIRCUITPY_I2CSLAVE = 0
6868
CIRCUITPY_DISPLAYIO = 0 # Requires SPI, PulseIO (stub ok)
6969
70-
# Modules with no common-hal implementation, but depend on something else
70+
# These modules are implemented in shared-module/ - they can be included in
71+
# any port once their prerequisites in common-hal are complete.
7172
CIRCUITPY_BITBANGIO = 0 # Requires DigitalIO
7273
CIRCUITPY_GAMEPAD = 0 # Requires DigitalIO
73-
CIRCUITPY_PIXELBUF = 0 # Does nothing without a neopixel or dotstar
74+
CIRCUITPY_PIXELBUF = 0 # Requires neopixel_write or SPI (dotstar)
7475
CIRCUITPY_RANDOM = 0 # Requires OS
7576
CIRCUITPY_STORAGE = 0 # Requires OS, filesystem
7677
CIRCUITPY_TOUCHIO = 0 # Requires Microcontroller

docs/shared_bindings_matrix.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ def get_excluded_boards(base):
139139
re_board_chip = re.compile("CHIP_FAMILY\s=\s(\w+)")
140140
chip_keyword = "CHIP_FAMILY"
141141
elif port in ["nrf"]:
142-
re_board_chip = re.compile("MCU_VARIANT\s=\s(\w+)")
142+
re_board_chip = re.compile(r"MCU_VARIANT\s=\s(\w+)")
143143
elif port in ["stm"]:
144-
re_board_chip = re.compile("MCU_SERIES\s*=\s*(\w+)")
144+
re_board_chip = re.compile(r"MCU_SERIES\s*=\s*(\w+)")
145145
chip_keyword = "MCU_SERIES"
146146

147147
port_dir = "ports/{}".format(port)
@@ -175,9 +175,9 @@ def get_excluded_boards(base):
175175
check_dependent_modules = dict()
176176
for module in modules:
177177
board_is_excluded = False
178-
# check if board uses `SMALL_BUILD`. if yes, and current
178+
# check if board turns off `FULL_BUILD`. if yes, and current
179179
# module is marked as `FULL_BUILD`, board is excluded
180-
small_build = re.search("CIRCUITPY_SMALL_BUILD = 1", contents)
180+
small_build = re.search("CIRCUITPY_FULL_BUILD = 0", contents)
181181
if small_build and base[module]["full_build"] == "1":
182182
board_is_excluded = True
183183

ports/atmel-samd/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ else
114114

115115
# Do a default shrink for small builds.
116116
ifndef CFLAGS_INLINE_LIMIT
117-
ifeq ($(CIRCUITPY_SMALL_BUILD),1)
117+
ifeq ($(CIRCUITPY_FULL_BUILD),0)
118118
CFLAGS_INLINE_LIMIT = 50
119119
endif
120120
endif
@@ -125,7 +125,7 @@ else
125125

126126
CFLAGS += -flto -flto-partition=none
127127

128-
ifeq ($(CIRCUITPY_SMALL_BUILD),1)
128+
ifeq ($(CIRCUITPY_FULL_BUILD),0)
129129
CFLAGS += --param inline-unit-growth=15 --param max-inline-insns-auto=20
130130
endif
131131

ports/atmel-samd/boards/8086_commander/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ EXTERNAL_FLASH_DEVICE_COUNT = 1
1313
EXTERNAL_FLASH_DEVICES = "W25Q128JV_SQ"
1414

1515
LONGINT_IMPL = NONE
16-
CIRCUITPY_SMALL_BUILD = 1
16+
CIRCUITPY_FULL_BUILD = 0
1717

1818
SUPEROPT_GC = 0
1919

ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ CHIP_FAMILY = samd21
88

99
INTERNAL_FLASH_FILESYSTEM = 1
1010
LONGINT_IMPL = NONE
11-
CIRCUITPY_SMALL_BUILD = 1
11+
CIRCUITPY_FULL_BUILD = 0
1212
SUPEROPT_GC = 0

ports/atmel-samd/boards/arduino_mkrzero/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ CHIP_FAMILY = samd21
88

99
INTERNAL_FLASH_FILESYSTEM = 1
1010
LONGINT_IMPL = NONE
11-
CIRCUITPY_SMALL_BUILD = 1
11+
CIRCUITPY_FULL_BUILD = 0
1212

1313
SUPEROPT_GC = 0

ports/atmel-samd/boards/arduino_nano_33_iot/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ CHIP_FAMILY = samd21
88

99
INTERNAL_FLASH_FILESYSTEM = 1
1010
LONGINT_IMPL = NONE
11-
CIRCUITPY_SMALL_BUILD = 1
11+
CIRCUITPY_FULL_BUILD = 0
1212

1313
SUPEROPT_GC = 0

ports/atmel-samd/boards/arduino_zero/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ CHIP_FAMILY = samd21
88

99
INTERNAL_FLASH_FILESYSTEM = 1
1010
LONGINT_IMPL = NONE
11-
CIRCUITPY_SMALL_BUILD = 1
11+
CIRCUITPY_FULL_BUILD = 0
1212

1313
SUPEROPT_GC = 0

ports/atmel-samd/boards/bast_pro_mini_m0/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ CHIP_FAMILY = samd21
88

99
INTERNAL_FLASH_FILESYSTEM = 1
1010
LONGINT_IMPL = NONE
11-
CIRCUITPY_SMALL_BUILD = 1
11+
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/catwan_usbstick/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ CHIP_FAMILY = samd21
88

99
INTERNAL_FLASH_FILESYSTEM = 1
1010
LONGINT_IMPL = NONE
11-
CIRCUITPY_SMALL_BUILD = 1
11+
CIRCUITPY_FULL_BUILD = 0

0 commit comments

Comments
 (0)