ports: Make all network-capable boards use bundle-networking.

This will ensure that any board with networking support gets:
 - webrepl
 - mip
 - urequests
 - ntptime

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared 2023-01-27 14:17:19 +11:00 committed by Damien George
parent c9baf498c8
commit 6250337c9c
44 changed files with 92 additions and 20 deletions

View File

@ -1,15 +1,14 @@
freeze("$(PORT_DIR)/modules") freeze("$(PORT_DIR)/modules")
include("$(MPY_DIR)/extmod/uasyncio") include("$(MPY_DIR)/extmod/uasyncio")
# Useful networking-related packages.
require("bundle-networking")
# Require some micropython-lib modules. # Require some micropython-lib modules.
require("dht") require("dht")
require("ds18x20") require("ds18x20")
require("mip")
require("neopixel") require("neopixel")
require("ntptime")
require("onewire") require("onewire")
require("umqtt.robust") require("umqtt.robust")
require("umqtt.simple") require("umqtt.simple")
require("upysh") require("upysh")
require("urequests")
require("webrepl")

View File

@ -1,8 +1,6 @@
freeze("$(PORT_DIR)/modules") freeze("$(PORT_DIR)/modules")
require("bundle-networking")
require("dht") require("dht")
require("ds18x20") require("ds18x20")
require("mip")
require("neopixel") require("neopixel")
require("ntptime")
require("onewire") require("onewire")
require("webrepl")

View File

@ -0,0 +1,3 @@
include("../manifest.py")
require("bundle-networking")

View File

@ -13,6 +13,8 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
JLINK_PATH ?= /media/RT1020-EVK/ JLINK_PATH ?= /media/RT1020-EVK/
JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink

View File

@ -0,0 +1,3 @@
include("../manifest.py")
require("bundle-networking")

View File

@ -12,3 +12,5 @@ MICROPY_HW_SDRAM_SIZE = 0x2000000 # 32MB
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,3 @@
include("../manifest.py")
require("bundle-networking")

View File

@ -13,6 +13,8 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
JLINK_PATH ?= /media/RT1060-EVK/ JLINK_PATH ?= /media/RT1060-EVK/
JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink

View File

@ -0,0 +1,3 @@
include("../manifest.py")
require("bundle-networking")

View File

@ -13,6 +13,8 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
JLINK_PATH ?= /media/RT1064-EVK/ JLINK_PATH ?= /media/RT1064-EVK/
deploy: $(BUILD)/firmware.bin deploy: $(BUILD)/firmware.bin

View File

@ -0,0 +1,3 @@
include("../manifest.py")
require("bundle-networking")

View File

@ -15,6 +15,8 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
CFLAGS += -DCPU_MIMXRT1176DVMAA_cm7 \ CFLAGS += -DCPU_MIMXRT1176DVMAA_cm7 \
-DMIMXRT117x_SERIES \ -DMIMXRT117x_SERIES \
-DENET_ENHANCEDBUFFERDESCRIPTOR_MODE=1 \ -DENET_ENHANCEDBUFFERDESCRIPTOR_MODE=1 \

View File

@ -0,0 +1,3 @@
include("../manifest.py")
require("bundle-networking")

View File

@ -13,4 +13,6 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
CFLAGS += -DSPI_RETRY_TIMES=1000000 FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
CFLAGS += -DSPI_RETRY_TIMES=1000000

View File

@ -0,0 +1,3 @@
include("../manifest.py")
require("bundle-networking")

View File

@ -11,5 +11,7 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
deploy: $(BUILD)/firmware.hex deploy: $(BUILD)/firmware.hex
teensy_loader_cli --mcu=imxrt1062 -v -w $< teensy_loader_cli --mcu=imxrt1062 -v -w $<

View File

@ -1,9 +1,7 @@
include("$(PORT_DIR)/boards/manifest.py") include("$(PORT_DIR)/boards/manifest.py")
# Networking # Networking
require("webrepl") require("bundle-networking")
require("urequests")
require("ntptime")
# Drivers # Drivers
require("lsm6dsox") require("lsm6dsox")

View File

@ -1,5 +1,3 @@
include("../manifest.py") include("$(PORT_DIR)/boards/manifest.py")
require("mip") require("bundle-networking")
require("ntptime")
require("urequests")

View File

@ -3,4 +3,4 @@ set(MICROPY_PY_LWIP ON)
set(MICROPY_PY_NETWORK_CYW43 ON) set(MICROPY_PY_NETWORK_CYW43 ON)
# Board specific version of the frozen manifest # Board specific version of the frozen manifest
set(MICROPY_FROZEN_MANIFEST ${CMAKE_SOURCE_DIR}/boards/PICO_W/manifest.py) set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

View File

@ -0,0 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -2,3 +2,4 @@
set(PICO_BOARD wiznet_w5100s_evb_pico) set(PICO_BOARD wiznet_w5100s_evb_pico)
set(MICROPY_PY_NETWORK_WIZNET5K W5100S) set(MICROPY_PY_NETWORK_WIZNET5K W5100S)
set(MICROPY_PY_LWIP 1) set(MICROPY_PY_LWIP 1)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

View File

@ -0,0 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -2,3 +2,4 @@
set(PICO_BOARD wiznet_w5100s_evb_pico) set(PICO_BOARD wiznet_w5100s_evb_pico)
set(MICROPY_PY_NETWORK_WIZNET5K W5500) set(MICROPY_PY_NETWORK_WIZNET5K W5500)
set(MICROPY_PY_LWIP 1) set(MICROPY_PY_LWIP 1)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

View File

@ -1,9 +1,7 @@
include("$(PORT_DIR)/boards/manifest.py") include("$(PORT_DIR)/boards/manifest.py")
# Networking # Networking
require("webrepl") require("bundle-networking")
require("urequests")
require("ntptime")
# Utils # Utils
require("logging") require("logging")

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -10,3 +10,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -21,3 +21,5 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
MICROPY_VFS_LFS2 = 1 MICROPY_VFS_LFS2 = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -1,3 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py") include("$(PORT_DIR)/boards/manifest.py")
include("$(PORT_DIR)/boards/manifest_pyboard.py") include("$(PORT_DIR)/boards/manifest_pyboard.py")
require("webrepl") require("bundle-networking")

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -44,3 +44,5 @@ endif
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

View File

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")

View File

@ -8,3 +8,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1 MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1 MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1 MICROPY_SSL_MBEDTLS = 1
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py