Skip to content

Commit 203dae4

Browse files
jimmodpgeorge
authored andcommitted
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 fbe9417. Signed-off-by: Jim Mussared <jim.mussared@gmail.com> Signed-off-by: Damien George <damien@micropython.org>
1 parent ccd2109 commit 203dae4

File tree

38 files changed

+126
-107
lines changed

38 files changed

+126
-107
lines changed

drivers/codec/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module("wm8960.py", opt=3)

drivers/dht/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module("dht.py", opt=3)

drivers/display/manifest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TODO: Split these into separate directories with their own manifests.
2+
options.defaults(lcd160cr=False, ssd1306=False, test=True)
3+
4+
if options.lcd160cr:
5+
module("lcd160cr.py", opt=3)
6+
7+
if options.test:
8+
module("lcd160cr_test.py", opt=3)
9+
10+
if options.ssd1306:
11+
module("ssd1306.py", opt=3)

drivers/hts221/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module("hts221.py", opt=3)

drivers/lps22h/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module("lps22h.py", opt=3)

drivers/lsm6dsox/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module("lsm6dsox.py", opt=3)

drivers/lsm9ds1/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module("lsm9ds1.py", opt=3)

drivers/neopixel/manifest.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
freeze(
2-
".",
3-
"neopixel.py",
4-
opt=3,
5-
)
1+
module("neopixel.py", opt=3)

drivers/nrf24l01/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module("nrf24l01.py", opt=3)

drivers/onewire/manifest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
options.defaults(ds18x20=False)
2+
3+
module("onewire.py", opt=3)
4+
5+
if options.ds18x20:
6+
module("ds18x20.py", opt=3)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy