stm32: Introduce MICROPY_PY_STM config to include or not the stm module.
By default the stm module is included in the build, but a board can now define MICROPY_PY_STM to 0 to not include this module. This reduces the firmware by about 7k.
This commit is contained in:
@@ -244,8 +244,10 @@ def main():
|
||||
print("")
|
||||
|
||||
with open(args.qstr_filename, 'wt') as qstr_file:
|
||||
print('#if MICROPY_PY_STM', file=qstr_file)
|
||||
for qstr in sorted(needed_qstrs):
|
||||
print('Q({})'.format(qstr), file=qstr_file)
|
||||
print('#endif // MICROPY_PY_STM', file=qstr_file)
|
||||
|
||||
with open(args.mpz_filename, 'wt') as mpz_file:
|
||||
for mpz in sorted(needed_mpzs):
|
||||
|
||||
Reference in New Issue
Block a user