kopia lustrzana https://github.com/pimoroni/pimoroni-pico
MicroPython: Move boot.py to modules_py.cmake.
The cppmem module *must* be switched into MicroPython heap mode or C++ code will inevitably run out of RAM. Thus boot.py needs to be included in every build.patch-boot-py
rodzic
c6b4a30c09
commit
0148e5f5e7
|
@ -48,7 +48,6 @@ if(PICO_BOARD STREQUAL "pico_w")
|
||||||
copy_module(automation.py)
|
copy_module(automation.py)
|
||||||
copy_module(inventor.py)
|
copy_module(inventor.py)
|
||||||
endif()
|
endif()
|
||||||
copy_module(boot.py)
|
|
||||||
|
|
||||||
# Must call `enable_ulab()` to enable
|
# Must call `enable_ulab()` to enable
|
||||||
include(micropython-common-ulab)
|
include(micropython-common-ulab)
|
|
@ -35,7 +35,6 @@ include(micropython-common-ulab)
|
||||||
enable_ulab()
|
enable_ulab()
|
||||||
|
|
||||||
include(modules_py/modules_py)
|
include(modules_py/modules_py)
|
||||||
copy_module(boot.py)
|
|
||||||
|
|
||||||
# C++ Magic Memory
|
# C++ Magic Memory
|
||||||
include(cppmem/micropython)
|
include(cppmem/micropython)
|
||||||
|
|
|
@ -45,7 +45,6 @@ include(motor/micropython)
|
||||||
# include(micropython-common)
|
# include(micropython-common)
|
||||||
|
|
||||||
include(modules_py/modules_py)
|
include(modules_py/modules_py)
|
||||||
copy_module(boot.py)
|
|
||||||
|
|
||||||
# C++ Magic Memory
|
# C++ Magic Memory
|
||||||
include(cppmem/micropython)
|
include(cppmem/micropython)
|
|
@ -35,7 +35,6 @@ include(micropython-common-ulab)
|
||||||
enable_ulab()
|
enable_ulab()
|
||||||
|
|
||||||
include(modules_py/modules_py)
|
include(modules_py/modules_py)
|
||||||
copy_module(boot.py)
|
|
||||||
|
|
||||||
# C++ Magic Memory
|
# C++ Magic Memory
|
||||||
include(cppmem/micropython)
|
include(cppmem/micropython)
|
||||||
|
|
|
@ -46,7 +46,6 @@ include(motor/micropython)
|
||||||
include(modules_py/modules_py)
|
include(modules_py/modules_py)
|
||||||
|
|
||||||
copy_module(inky_frame.py)
|
copy_module(inky_frame.py)
|
||||||
copy_module(boot.py)
|
|
||||||
|
|
||||||
# C++ Magic Memory
|
# C++ Magic Memory
|
||||||
include(cppmem/micropython)
|
include(cppmem/micropython)
|
||||||
|
|
|
@ -40,7 +40,6 @@ include(micropython-common-ulab)
|
||||||
enable_ulab()
|
enable_ulab()
|
||||||
|
|
||||||
include(modules_py/modules_py)
|
include(modules_py/modules_py)
|
||||||
copy_module(boot.py)
|
|
||||||
|
|
||||||
# C++ Magic Memory
|
# C++ Magic Memory
|
||||||
include(cppmem/micropython)
|
include(cppmem/micropython)
|
|
@ -34,3 +34,4 @@ genversion(version.py)
|
||||||
|
|
||||||
# .py files to copy from modules_py to ports/rp2/modules
|
# .py files to copy from modules_py to ports/rp2/modules
|
||||||
copy_module(pimoroni.py)
|
copy_module(pimoroni.py)
|
||||||
|
copy_module(boot.py)
|
||||||
|
|
Ładowanie…
Reference in New Issue