summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-07-15 23:46:28 +1000
committerDamien George <damien@micropython.org>2022-09-05 18:43:18 +1000
commit203dae41fbaceeea9a04dc540b22de4ddd0d5a69 (patch)
tree7b3d99a3bc54ed0f6c1e1d4bf2ae8d42fde7c420
parentccd210984e7a959694b2af4937ce953a822c2ea5 (diff)
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 fbe9417b90474dd1a08749b3a79311a8007a98fb. Signed-off-by: Jim Mussared <jim.mussared@gmail.com> Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--drivers/codec/manifest.py1
-rw-r--r--drivers/dht/manifest.py1
-rw-r--r--drivers/display/manifest.py11
-rw-r--r--drivers/hts221/manifest.py1
-rw-r--r--drivers/lps22h/manifest.py1
-rw-r--r--drivers/lsm6dsox/manifest.py1
-rw-r--r--drivers/lsm9ds1/manifest.py1
-rw-r--r--drivers/neopixel/manifest.py6
-rw-r--r--drivers/nrf24l01/manifest.py1
-rw-r--r--drivers/onewire/manifest.py6
-rw-r--r--drivers/sdcard/manifest.py1
-rw-r--r--extmod/uasyncio/manifest.py20
-rw-r--r--extmod/webrepl/manifest.py3
-rw-r--r--ports/esp32/boards/LILYGO_TTGO_LORA32/manifest.py2
-rw-r--r--ports/esp32/boards/LOLIN_S2_PICO/manifest.py2
-rw-r--r--ports/esp32/boards/UM_FEATHERS2/manifest.py2
-rw-r--r--ports/esp32/boards/manifest.py25
-rw-r--r--ports/esp8266/boards/GENERIC/manifest.py14
-rw-r--r--ports/esp8266/boards/GENERIC_512K/manifest.py13
-rw-r--r--ports/esp8266/boards/manifest.py13
-rw-r--r--ports/mimxrt/boards/manifest.py10
-rw-r--r--ports/nrf/boards/arduino_nano_33_ble_sense/manifest.py6
-rw-r--r--ports/nrf/modules/manifest.py4
-rw-r--r--ports/renesas-ra/boards/RA4M1_CLICKER/manifest.py2
-rw-r--r--ports/renesas-ra/boards/RA4M1_EK/manifest.py2
-rw-r--r--ports/renesas-ra/boards/manifest.py8
-rw-r--r--ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/manifest.py20
-rw-r--r--ports/rp2/boards/PICO_W/manifest.py8
-rw-r--r--ports/rp2/boards/manifest.py8
-rw-r--r--ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py10
-rw-r--r--ports/stm32/boards/GARATRONIC_PYBSTICK26_F411/manifest.py2
-rw-r--r--ports/stm32/boards/LEGO_HUB_NO6/manifest.py2
-rw-r--r--ports/stm32/boards/LEGO_HUB_NO7/manifest.py7
-rw-r--r--ports/stm32/boards/PYBD_SF2/manifest.py2
-rw-r--r--ports/stm32/boards/manifest.py9
-rw-r--r--ports/unix/variants/dev/manifest.py2
-rw-r--r--ports/unix/variants/manifest.py4
-rw-r--r--ports/windows/variants/dev/manifest.py2
38 files changed, 126 insertions, 107 deletions
diff --git a/drivers/codec/manifest.py b/drivers/codec/manifest.py
new file mode 100644
index 000000000..4ff5d9fc4
--- /dev/null
+++ b/drivers/codec/manifest.py
@@ -0,0 +1 @@
+module("wm8960.py", opt=3)
diff --git a/drivers/dht/manifest.py b/drivers/dht/manifest.py
new file mode 100644
index 000000000..72a4e0d24
--- /dev/null
+++ b/drivers/dht/manifest.py
@@ -0,0 +1 @@
+module("dht.py", opt=3)
diff --git a/drivers/display/manifest.py b/drivers/display/manifest.py
new file mode 100644
index 000000000..d1ddff337
--- /dev/null
+++ b/drivers/display/manifest.py
@@ -0,0 +1,11 @@
+# TODO: Split these into separate directories with their own manifests.
+options.defaults(lcd160cr=False, ssd1306=False, test=True)
+
+if options.lcd160cr:
+ module("lcd160cr.py", opt=3)
+
+ if options.test:
+ module("lcd160cr_test.py", opt=3)
+
+if options.ssd1306:
+ module("ssd1306.py", opt=3)
diff --git a/drivers/hts221/manifest.py b/drivers/hts221/manifest.py
new file mode 100644
index 000000000..5f1792665
--- /dev/null
+++ b/drivers/hts221/manifest.py
@@ -0,0 +1 @@
+module("hts221.py", opt=3)
diff --git a/drivers/lps22h/manifest.py b/drivers/lps22h/manifest.py
new file mode 100644
index 000000000..d30108d93
--- /dev/null
+++ b/drivers/lps22h/manifest.py
@@ -0,0 +1 @@
+module("lps22h.py", opt=3)
diff --git a/drivers/lsm6dsox/manifest.py b/drivers/lsm6dsox/manifest.py
new file mode 100644
index 000000000..28f4b3565
--- /dev/null
+++ b/drivers/lsm6dsox/manifest.py
@@ -0,0 +1 @@
+module("lsm6dsox.py", opt=3)
diff --git a/drivers/lsm9ds1/manifest.py b/drivers/lsm9ds1/manifest.py
new file mode 100644
index 000000000..6779362de
--- /dev/null
+++ b/drivers/lsm9ds1/manifest.py
@@ -0,0 +1 @@
+module("lsm9ds1.py", opt=3)
diff --git a/drivers/neopixel/manifest.py b/drivers/neopixel/manifest.py
index 27f610adc..561d19574 100644
--- a/drivers/neopixel/manifest.py
+++ b/drivers/neopixel/manifest.py
@@ -1,5 +1 @@
-freeze(
- ".",
- "neopixel.py",
- opt=3,
-)
+module("neopixel.py", opt=3)
diff --git a/drivers/nrf24l01/manifest.py b/drivers/nrf24l01/manifest.py
new file mode 100644
index 000000000..babdb7a52
--- /dev/null
+++ b/drivers/nrf24l01/manifest.py
@@ -0,0 +1 @@
+module("nrf24l01.py", opt=3)
diff --git a/drivers/onewire/manifest.py b/drivers/onewire/manifest.py
new file mode 100644
index 000000000..f500a65d7
--- /dev/null
+++ b/drivers/onewire/manifest.py
@@ -0,0 +1,6 @@
+options.defaults(ds18x20=False)
+
+module("onewire.py", opt=3)
+
+if options.ds18x20:
+ module("ds18x20.py", opt=3)
diff --git a/drivers/sdcard/manifest.py b/drivers/sdcard/manifest.py
new file mode 100644
index 000000000..e584b97d9
--- /dev/null
+++ b/drivers/sdcard/manifest.py
@@ -0,0 +1 @@
+module("sdcard.py", opt=3)
diff --git a/extmod/uasyncio/manifest.py b/extmod/uasyncio/manifest.py
index f5fa27bfc..d425a467b 100644
--- a/extmod/uasyncio/manifest.py
+++ b/extmod/uasyncio/manifest.py
@@ -1,13 +1,15 @@
-# This list of frozen files doesn't include task.py because that's provided by the C module.
-freeze(
- "..",
+# This list of package files doesn't include task.py because that's provided
+# by the C module.
+package(
+ "uasyncio",
(
- "uasyncio/__init__.py",
- "uasyncio/core.py",
- "uasyncio/event.py",
- "uasyncio/funcs.py",
- "uasyncio/lock.py",
- "uasyncio/stream.py",
+ "__init__.py",
+ "core.py",
+ "event.py",
+ "funcs.py",
+ "lock.py",
+ "stream.py",
),
+ base_path="..",
opt=3,
)
diff --git a/extmod/webrepl/manifest.py b/extmod/webrepl/manifest.py
index c504c7305..6d1a31421 100644
--- a/extmod/webrepl/manifest.py
+++ b/extmod/webrepl/manifest.py
@@ -1 +1,2 @@
-freeze(".", ("webrepl.py", "webrepl_setup.py"))
+module("webrepl.py", opt=3)
+module("webrepl_setup.py", opt=3)
diff --git a/ports/esp32/boards/LILYGO_TTGO_LORA32/manifest.py b/ports/esp32/boards/LILYGO_TTGO_LORA32/manifest.py
index 0709f8597..6c491c8f6 100644
--- a/ports/esp32/boards/LILYGO_TTGO_LORA32/manifest.py
+++ b/ports/esp32/boards/LILYGO_TTGO_LORA32/manifest.py
@@ -1,4 +1,4 @@
include("$(PORT_DIR)/boards/manifest.py")
freeze("modules")
-freeze("$(MPY_DIR)/drivers/display", "ssd1306.py")
+include("$(MPY_DIR)/drivers/display", ssd1306=True)
diff --git a/ports/esp32/boards/LOLIN_S2_PICO/manifest.py b/ports/esp32/boards/LOLIN_S2_PICO/manifest.py
index 98d4247c6..efc37137b 100644
--- a/ports/esp32/boards/LOLIN_S2_PICO/manifest.py
+++ b/ports/esp32/boards/LOLIN_S2_PICO/manifest.py
@@ -1,4 +1,4 @@
include("$(PORT_DIR)/boards/manifest.py")
freeze("./modules")
-freeze("$(MPY_DIR)/drivers/display", "ssd1306.py")
+include("$(MPY_DIR)/drivers/display", ssd1306=True)
diff --git a/ports/esp32/boards/UM_FEATHERS2/manifest.py b/ports/esp32/boards/UM_FEATHERS2/manifest.py
index 82ad0c7e4..3fda1dd82 100644
--- a/ports/esp32/boards/UM_FEATHERS2/manifest.py
+++ b/ports/esp32/boards/UM_FEATHERS2/manifest.py
@@ -1,3 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py")
-freeze("$(PORT_DIR)/boards/UM_TINYPICO/modules", "dotstar.py")
+module("dotstar.py", base_path="$(PORT_DIR)/boards/UM_TINYPICO/modules", opt=3)
freeze("modules")
diff --git a/ports/esp32/boards/manifest.py b/ports/esp32/boards/manifest.py
index 23252442e..658d11d58 100644
--- a/ports/esp32/boards/manifest.py
+++ b/ports/esp32/boards/manifest.py
@@ -1,14 +1,15 @@
freeze("$(PORT_DIR)/modules")
-freeze("$(MPY_DIR)/tools", ("upip.py", "upip_utarfile.py"))
-freeze("$(MPY_DIR)/extmod", "ntptime.py")
-freeze("$(MPY_DIR)/drivers/dht", "dht.py")
-freeze("$(MPY_DIR)/drivers/onewire")
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
-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)/drivers/neopixel")
+include("$(MPY_DIR)/extmod/uasyncio")
+include("$(MPY_DIR)/extmod/webrepl")
-# Freeze some micropython-lib modules.
-freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
-freeze("$(MPY_LIB_DIR)/micropython/upysh", "upysh.py")
-freeze("$(MPY_LIB_DIR)/micropython/umqtt.simple", "umqtt/simple.py")
-freeze("$(MPY_LIB_DIR)/micropython/umqtt.robust", "umqtt/robust.py")
+# Require some micropython-lib modules.
+require("urequests")
+require("upysh")
+require("umqtt.simple")
+require("umqtt.robust")
diff --git a/ports/esp8266/boards/GENERIC/manifest.py b/ports/esp8266/boards/GENERIC/manifest.py
index ef25040ef..54b916546 100644
--- a/ports/esp8266/boards/GENERIC/manifest.py
+++ b/ports/esp8266/boards/GENERIC/manifest.py
@@ -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")
diff --git a/ports/esp8266/boards/GENERIC_512K/manifest.py b/ports/esp8266/boards/GENERIC_512K/manifest.py
index e43d94843..57970a6b4 100644
--- a/ports/esp8266/boards/GENERIC_512K/manifest.py
+++ b/ports/esp8266/boards/GENERIC_512K/manifest.py
@@ -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")
diff --git a/ports/esp8266/boards/manifest.py b/ports/esp8266/boards/manifest.py
index c5809717e..abcee253f 100644
--- a/ports/esp8266/boards/manifest.py
+++ b/ports/esp8266/boards/manifest.py
@@ -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")
diff --git a/ports/mimxrt/boards/manifest.py b/ports/mimxrt/boards/manifest.py
index 2e1a1d63d..a273dfa37 100644
--- a/ports/mimxrt/boards/manifest.py
+++ b/ports/mimxrt/boards/manifest.py
@@ -1,8 +1,4 @@
freeze("$(PORT_DIR)/modules")
-freeze("$(MPY_DIR)/drivers/onewire")
-freeze("$(MPY_DIR)/drivers/dht", "dht.py")
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
-try:
- include("$(BOARD_DIR)/manifest.py")
-except FileNotFoundError:
- pass
+include("$(MPY_DIR)/drivers/onewire")
+include("$(MPY_DIR)/drivers/dht")
+include("$(MPY_DIR)/extmod/uasyncio")
diff --git a/ports/nrf/boards/arduino_nano_33_ble_sense/manifest.py b/ports/nrf/boards/arduino_nano_33_ble_sense/manifest.py
index dbc8104dc..2b0cc6c81 100644
--- a/ports/nrf/boards/arduino_nano_33_ble_sense/manifest.py
+++ b/ports/nrf/boards/arduino_nano_33_ble_sense/manifest.py
@@ -1,4 +1,4 @@
include("$(PORT_DIR)/modules/manifest.py")
-freeze("$(MPY_DIR)/drivers/hts221", "hts221.py")
-freeze("$(MPY_DIR)/drivers/lps22h", "lps22h.py")
-freeze("$(MPY_DIR)/drivers/lsm9ds1", "lsm9ds1.py")
+include("$(MPY_DIR)/drivers/hts221")
+include("$(MPY_DIR)/drivers/lps22h")
+include("$(MPY_DIR)/drivers/lsm9ds1")
diff --git a/ports/nrf/modules/manifest.py b/ports/nrf/modules/manifest.py
index b27d4648b..6efaf62d7 100644
--- a/ports/nrf/modules/manifest.py
+++ b/ports/nrf/modules/manifest.py
@@ -1,2 +1,2 @@
-freeze("$(PORT_DIR)/modules/scripts", "_mkfs.py")
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
+module("_mkfs.py", base_path="$(PORT_DIR)/modules/scripts", opt=3)
+include("$(MPY_DIR)/extmod/uasyncio")
diff --git a/ports/renesas-ra/boards/RA4M1_CLICKER/manifest.py b/ports/renesas-ra/boards/RA4M1_CLICKER/manifest.py
index 4a387915d..c25ae7988 100644
--- a/ports/renesas-ra/boards/RA4M1_CLICKER/manifest.py
+++ b/ports/renesas-ra/boards/RA4M1_CLICKER/manifest.py
@@ -1,2 +1,2 @@
# We do not want to include default frozen modules,
-freeze("$(MPY_DIR)/drivers/sdcard", "sdcard.py")
+include("$(MPY_DIR)/drivers/sdcard")
diff --git a/ports/renesas-ra/boards/RA4M1_EK/manifest.py b/ports/renesas-ra/boards/RA4M1_EK/manifest.py
index 4a387915d..c25ae7988 100644
--- a/ports/renesas-ra/boards/RA4M1_EK/manifest.py
+++ b/ports/renesas-ra/boards/RA4M1_EK/manifest.py
@@ -1,2 +1,2 @@
# We do not want to include default frozen modules,
-freeze("$(MPY_DIR)/drivers/sdcard", "sdcard.py")
+include("$(MPY_DIR)/drivers/sdcard")
diff --git a/ports/renesas-ra/boards/manifest.py b/ports/renesas-ra/boards/manifest.py
index 836bf7ccc..c66ec9201 100644
--- a/ports/renesas-ra/boards/manifest.py
+++ b/ports/renesas-ra/boards/manifest.py
@@ -1,4 +1,4 @@
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
-freeze("$(MPY_DIR)/drivers/dht", "dht.py")
-freeze("$(MPY_DIR)/drivers/onewire", "onewire.py")
-freeze("$(MPY_DIR)/drivers/sdcard", "sdcard.py")
+include("$(MPY_DIR)/extmod/uasyncio")
+include("$(MPY_DIR)/drivers/dht")
+include("$(MPY_DIR)/drivers/onewire", ds18x20=False)
+include("$(MPY_DIR)/drivers/sdcard")
diff --git a/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/manifest.py b/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/manifest.py
index 7a2f1c9e2..e139c7d60 100644
--- a/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/manifest.py
+++ b/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/manifest.py
@@ -1,11 +1,11 @@
include("$(PORT_DIR)/boards/manifest.py")
-include("$(MPY_DIR)/extmod/webrepl/manifest.py")
-freeze("$(MPY_DIR)/drivers/lsm6dsox/", "lsm6dsox.py")
-include(
- "$(MPY_LIB_DIR)/micropython/bluetooth/aioble/manifest.py",
- client=True,
- central=True,
- l2cap=True,
- security=True,
-)
-freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
+
+# Networking
+include("$(MPY_DIR)/extmod/webrepl")
+require("urequests")
+
+# Drivers
+include("$(MPY_DIR)/drivers/lsm6dsox")
+
+# Bluetooth
+require("aioble", client=True, central=True, l2cap=True, security=True)
diff --git a/ports/rp2/boards/PICO_W/manifest.py b/ports/rp2/boards/PICO_W/manifest.py
index d2c76602a..66ff26b0c 100644
--- a/ports/rp2/boards/PICO_W/manifest.py
+++ b/ports/rp2/boards/PICO_W/manifest.py
@@ -1,7 +1,7 @@
include("../manifest.py")
-freeze("$(MPY_DIR)/tools", "upip.py")
-freeze("$(MPY_DIR)/tools", "upip_utarfile.py")
-freeze("$(MPY_DIR)/extmod", "ntptime.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)
-freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
+require("urequests")
diff --git a/ports/rp2/boards/manifest.py b/ports/rp2/boards/manifest.py
index b0e5e3155..9afcba17e 100644
--- a/ports/rp2/boards/manifest.py
+++ b/ports/rp2/boards/manifest.py
@@ -1,5 +1,5 @@
freeze("$(PORT_DIR)/modules")
-freeze("$(MPY_DIR)/drivers/onewire")
-freeze("$(MPY_DIR)/drivers/dht", "dht.py")
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
-include("$(MPY_DIR)/drivers/neopixel/manifest.py")
+include("$(MPY_DIR)/drivers/onewire")
+include("$(MPY_DIR)/drivers/dht")
+include("$(MPY_DIR)/extmod/uasyncio")
+include("$(MPY_DIR)/drivers/neopixel")
diff --git a/ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py b/ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py
index cd721d0ac..0ecdcd215 100644
--- a/ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py
+++ b/ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py
@@ -1,9 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py")
-include("$(MPY_DIR)/extmod/webrepl/manifest.py")
-include(
- "$(MPY_LIB_DIR)/micropython/bluetooth/aioble/manifest.py",
- client=True,
- central=True,
- l2cap=True,
- security=True,
-)
+include("$(MPY_DIR)/extmod/webrepl")
+require("aioble", client=True, central=True, l2cap=True, security=True)
diff --git a/ports/stm32/boards/GARATRONIC_PYBSTICK26_F411/manifest.py b/ports/stm32/boards/GARATRONIC_PYBSTICK26_F411/manifest.py
index b09c7ab92..69da2897a 100644
--- a/ports/stm32/boards/GARATRONIC_PYBSTICK26_F411/manifest.py
+++ b/ports/stm32/boards/GARATRONIC_PYBSTICK26_F411/manifest.py
@@ -1,2 +1,2 @@
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
+# Note: Freezes to display.ssd1306, so must use deprecated "freeze" function.
freeze("$(MPY_DIR)/drivers/", ("display/ssd1306.py"))
diff --git a/ports/stm32/boards/LEGO_HUB_NO6/manifest.py b/ports/stm32/boards/LEGO_HUB_NO6/manifest.py
index dc09d04c9..107001c38 100644
--- a/ports/stm32/boards/LEGO_HUB_NO6/manifest.py
+++ b/ports/stm32/boards/LEGO_HUB_NO6/manifest.py
@@ -1,3 +1,5 @@
+# Shared manifest for LEGO_HUB_NO6 & LEGO_HUB_NO7.
+
include("$(PORT_DIR)/boards/manifest.py")
# Modules for application firmware update.
diff --git a/ports/stm32/boards/LEGO_HUB_NO7/manifest.py b/ports/stm32/boards/LEGO_HUB_NO7/manifest.py
index d74638163..ee79864a9 100644
--- a/ports/stm32/boards/LEGO_HUB_NO7/manifest.py
+++ b/ports/stm32/boards/LEGO_HUB_NO7/manifest.py
@@ -1,5 +1,2 @@
-include("$(PORT_DIR)/boards/manifest.py")
-
-# Modules for application firmware update.
-freeze("$(PORT_DIR)/mboot", "fwupdate.py", opt=3)
-freeze("$(PORT_DIR)/boards/LEGO_HUB_NO6", ("spiflash.py", "appupdate.py"), opt=3)
+# Use shared manifest.
+include("$(PORT_DIR)/boards/LEGO_HUB_NO6")
diff --git a/ports/stm32/boards/PYBD_SF2/manifest.py b/ports/stm32/boards/PYBD_SF2/manifest.py
index 3819aa01b..e4736f693 100644
--- a/ports/stm32/boards/PYBD_SF2/manifest.py
+++ b/ports/stm32/boards/PYBD_SF2/manifest.py
@@ -1,2 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
-include("$(MPY_DIR)/extmod/webrepl/manifest.py")
+include("$(MPY_DIR)/extmod/webrepl")
diff --git a/ports/stm32/boards/manifest.py b/ports/stm32/boards/manifest.py
index 81b858341..4bb224e2d 100644
--- a/ports/stm32/boards/manifest.py
+++ b/ports/stm32/boards/manifest.py
@@ -1,4 +1,5 @@
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
-freeze("$(MPY_DIR)/drivers/dht", "dht.py")
-freeze("$(MPY_DIR)/drivers/display", ("lcd160cr.py", "lcd160cr_test.py"))
-freeze("$(MPY_DIR)/drivers/onewire", "onewire.py")
+include("$(MPY_DIR)/extmod/uasyncio")
+
+include("$(MPY_DIR)/drivers/dht")
+include("$(MPY_DIR)/drivers/display", lcd160cr=True, test=True)
+include("$(MPY_DIR)/drivers/onewire", ds18x20=False)
diff --git a/ports/unix/variants/dev/manifest.py b/ports/unix/variants/dev/manifest.py
index 92a681116..dd521258e 100644
--- a/ports/unix/variants/dev/manifest.py
+++ b/ports/unix/variants/dev/manifest.py
@@ -1,3 +1,3 @@
include("$(PORT_DIR)/variants/manifest.py")
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
+include("$(MPY_DIR)/extmod/uasyncio")
diff --git a/ports/unix/variants/manifest.py b/ports/unix/variants/manifest.py
index 7708e598d..bf7ce992a 100644
--- a/ports/unix/variants/manifest.py
+++ b/ports/unix/variants/manifest.py
@@ -1,2 +1,2 @@
-freeze_as_mpy("$(MPY_DIR)/tools", "upip.py")
-freeze_as_mpy("$(MPY_DIR)/tools", "upip_utarfile.py", opt=3)
+module("upip.py", base_path="$(MPY_DIR)/tools", opt=3)
+module("upip_utarfile.py", base_path="$(MPY_DIR)/tools", opt=3)
diff --git a/ports/windows/variants/dev/manifest.py b/ports/windows/variants/dev/manifest.py
index 88a6937b4..f65a3d35e 100644
--- a/ports/windows/variants/dev/manifest.py
+++ b/ports/windows/variants/dev/manifest.py
@@ -1,2 +1,2 @@
include("$(PORT_DIR)/variants/manifest.py")
-include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
+include("$(MPY_DIR)/extmod/uasyncio")