summaryrefslogtreecommitdiffstatshomepage
path: root/drivers
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 /drivers
parentccd210984e7a959694b2af4937ce953a822c2ea5 (diff)
downloadmicropython-203dae41fbaceeea9a04dc540b22de4ddd0d5a69.tar.gz
micropython-203dae41fbaceeea9a04dc540b22de4ddd0d5a69.zip
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>
Diffstat (limited to 'drivers')
-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
11 files changed, 26 insertions, 5 deletions
diff --git a/drivers/codec/manifest.py b/drivers/codec/manifest.py
new file mode 100644
index 0000000000..4ff5d9fc44
--- /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 0000000000..72a4e0d24f
--- /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 0000000000..d1ddff3374
--- /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 0000000000..5f17926659
--- /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 0000000000..d30108d93d
--- /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 0000000000..28f4b3565e
--- /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 0000000000..6779362de7
--- /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 27f610adc0..561d19574a 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 0000000000..babdb7a52a
--- /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 0000000000..f500a65d78
--- /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 0000000000..e584b97d9c
--- /dev/null
+++ b/drivers/sdcard/manifest.py
@@ -0,0 +1 @@
+module("sdcard.py", opt=3)