all: Update all manifest.py files to use new features.
Changes in this commit:
- Manifest include's now use the directory path where possible (no longer
necessary to include the manifest.py file explicitly).
- Add manifest.py for all drivers and components that are referenced by
port/board manifests.
- Replace all uses of freeze() with package()/module(), except for port and
board modules.
- Use opt=3 everywhere, for consistency and to reduce code size.
- Use require() instead of include() for all micropython-lib references.
- Remove support for optional board-level manifest.py in mimxrt port, to
make it behave the same as other ports (the board must set
FROZEN_MANIFEST to a custom manifest.py, which can optionally include the
default, port-level manifest).
- Also reinstates modules that were accidentally removed from the esp8266
512k build in fbe9417b90.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
committed by
Damien George
parent
ccd210984e
commit
203dae41fb
@@ -2,18 +2,18 @@
|
||||
include("$(PORT_DIR)/boards/manifest.py")
|
||||
|
||||
# uasyncio
|
||||
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
|
||||
include("$(MPY_DIR)/extmod/uasyncio")
|
||||
|
||||
# drivers
|
||||
freeze("$(MPY_DIR)/drivers/display", "ssd1306.py")
|
||||
include("$(MPY_DIR)/drivers/display", ssd1306=True)
|
||||
|
||||
# micropython-lib: file utilities
|
||||
freeze("$(MPY_LIB_DIR)/micropython/upysh", "upysh.py")
|
||||
require("upysh")
|
||||
|
||||
# micropython-lib: requests
|
||||
freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
|
||||
freeze("$(MPY_LIB_DIR)/micropython/urllib.urequest", "urllib/urequest.py")
|
||||
require("urequests")
|
||||
require("urllib.urequest")
|
||||
|
||||
# micropython-lib: umqtt
|
||||
freeze("$(MPY_LIB_DIR)/micropython/umqtt.simple", "umqtt/simple.py")
|
||||
freeze("$(MPY_LIB_DIR)/micropython/umqtt.robust", "umqtt/robust.py")
|
||||
require("umqtt.simple")
|
||||
require("umqtt.robust")
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
freeze("$(BOARD_DIR)", "_boot.py", opt=3)
|
||||
freeze("$(MPY_DIR)/drivers/dht", "dht.py")
|
||||
freeze("$(MPY_DIR)/drivers/onewire")
|
||||
include("$(MPY_DIR)/extmod/webrepl/manifest.py")
|
||||
include("$(MPY_DIR)/drivers/neopixel/manifest.py")
|
||||
module("_boot.py", opt=3)
|
||||
module("apa102.py", base_path="$(PORT_DIR)/modules", opt=3)
|
||||
module("port_diag.py", base_path="$(PORT_DIR)/modules", opt=3)
|
||||
module("ntptime.py", base_path="$(MPY_DIR)/extmod", opt=3)
|
||||
include("$(MPY_DIR)/drivers/dht")
|
||||
include("$(MPY_DIR)/drivers/onewire")
|
||||
include("$(MPY_DIR)/extmod/webrepl")
|
||||
include("$(MPY_DIR)/drivers/neopixel")
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
freeze("$(PORT_DIR)/modules")
|
||||
freeze("$(MPY_DIR)/extmod", "ntptime.py")
|
||||
freeze("$(MPY_DIR)/tools", ("upip.py", "upip_utarfile.py"))
|
||||
freeze("$(MPY_DIR)/drivers/dht", "dht.py")
|
||||
freeze("$(MPY_DIR)/drivers/onewire")
|
||||
include("$(MPY_DIR)/extmod/webrepl/manifest.py")
|
||||
include("$(MPY_DIR)/drivers/neopixel/manifest.py")
|
||||
module("upip.py", base_path="$(MPY_DIR)/tools", opt=3)
|
||||
module("upip_utarfile.py", base_path="$(MPY_DIR)/tools", opt=3)
|
||||
module("ntptime.py", base_path="$(MPY_DIR)/extmod", opt=3)
|
||||
include("$(MPY_DIR)/drivers/dht")
|
||||
include("$(MPY_DIR)/drivers/onewire")
|
||||
include("$(MPY_DIR)/extmod/webrepl")
|
||||
include("$(MPY_DIR)/drivers/neopixel")
|
||||
|
||||
Reference in New Issue
Block a user