Skip to content

Commit

Permalink
ports: Make all network-capable boards use bundle-networking.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jimmo authored and dpgeorge committed Feb 1, 2023
1 parent c9baf49 commit 6250337
Show file tree
Hide file tree
Showing 44 changed files with 92 additions and 20 deletions.
7 changes: 3 additions & 4 deletions ports/esp32/boards/manifest.py
@@ -1,15 +1,14 @@
freeze("$(PORT_DIR)/modules")
include("$(MPY_DIR)/extmod/uasyncio")

# Useful networking-related packages.
require("bundle-networking")

# Require some micropython-lib modules.
require("dht")
require("ds18x20")
require("mip")
require("neopixel")
require("ntptime")
require("onewire")
require("umqtt.robust")
require("umqtt.simple")
require("upysh")
require("urequests")
require("webrepl")
4 changes: 1 addition & 3 deletions ports/esp8266/boards/manifest.py
@@ -1,8 +1,6 @@
freeze("$(PORT_DIR)/modules")
require("bundle-networking")
require("dht")
require("ds18x20")
require("mip")
require("neopixel")
require("ntptime")
require("onewire")
require("webrepl")
3 changes: 3 additions & 0 deletions ports/mimxrt/boards/MIMXRT1020_EVK/manifest.py
@@ -0,0 +1,3 @@
include("../manifest.py")

require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/mimxrt/boards/MIMXRT1020_EVK/mpconfigboard.mk
Expand Up @@ -13,6 +13,8 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py

JLINK_PATH ?= /media/RT1020-EVK/
JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink

Expand Down
3 changes: 3 additions & 0 deletions ports/mimxrt/boards/MIMXRT1050_EVK/manifest.py
@@ -0,0 +1,3 @@
include("../manifest.py")

require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/mimxrt/boards/MIMXRT1050_EVK/mpconfigboard.mk
Expand Up @@ -12,3 +12,5 @@ MICROPY_HW_SDRAM_SIZE = 0x2000000 # 32MB
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
3 changes: 3 additions & 0 deletions ports/mimxrt/boards/MIMXRT1060_EVK/manifest.py
@@ -0,0 +1,3 @@
include("../manifest.py")

require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/mimxrt/boards/MIMXRT1060_EVK/mpconfigboard.mk
Expand Up @@ -13,6 +13,8 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py

JLINK_PATH ?= /media/RT1060-EVK/
JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink

Expand Down
3 changes: 3 additions & 0 deletions ports/mimxrt/boards/MIMXRT1064_EVK/manifest.py
@@ -0,0 +1,3 @@
include("../manifest.py")

require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/mimxrt/boards/MIMXRT1064_EVK/mpconfigboard.mk
Expand Up @@ -13,6 +13,8 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py

JLINK_PATH ?= /media/RT1064-EVK/

deploy: $(BUILD)/firmware.bin
Expand Down
3 changes: 3 additions & 0 deletions ports/mimxrt/boards/MIMXRT1170_EVK/manifest.py
@@ -0,0 +1,3 @@
include("../manifest.py")

require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/mimxrt/boards/MIMXRT1170_EVK/mpconfigboard.mk
Expand Up @@ -15,6 +15,8 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py

CFLAGS += -DCPU_MIMXRT1176DVMAA_cm7 \
-DMIMXRT117x_SERIES \
-DENET_ENHANCEDBUFFERDESCRIPTOR_MODE=1 \
Expand Down
3 changes: 3 additions & 0 deletions ports/mimxrt/boards/SEEED_ARCH_MIX/manifest.py
@@ -0,0 +1,3 @@
include("../manifest.py")

require("bundle-networking")
4 changes: 3 additions & 1 deletion ports/mimxrt/boards/SEEED_ARCH_MIX/mpconfigboard.mk
Expand Up @@ -13,4 +13,6 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

CFLAGS += -DSPI_RETRY_TIMES=1000000
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py

CFLAGS += -DSPI_RETRY_TIMES=1000000
3 changes: 3 additions & 0 deletions ports/mimxrt/boards/TEENSY41/manifest.py
@@ -0,0 +1,3 @@
include("../manifest.py")

require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/mimxrt/boards/TEENSY41/mpconfigboard.mk
Expand Up @@ -11,5 +11,7 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py

deploy: $(BUILD)/firmware.hex
teensy_loader_cli --mcu=imxrt1062 -v -w $<
4 changes: 1 addition & 3 deletions ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/manifest.py
@@ -1,9 +1,7 @@
include("$(PORT_DIR)/boards/manifest.py")

# Networking
require("webrepl")
require("urequests")
require("ntptime")
require("bundle-networking")

# Drivers
require("lsm6dsox")
Expand Down
6 changes: 2 additions & 4 deletions ports/rp2/boards/PICO_W/manifest.py
@@ -1,5 +1,3 @@
include("../manifest.py")
include("$(PORT_DIR)/boards/manifest.py")

require("mip")
require("ntptime")
require("urequests")
require("bundle-networking")
2 changes: 1 addition & 1 deletion ports/rp2/boards/PICO_W/mpconfigboard.cmake
Expand Up @@ -3,4 +3,4 @@ set(MICROPY_PY_LWIP ON)
set(MICROPY_PY_NETWORK_CYW43 ON)

# 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)
3 changes: 3 additions & 0 deletions ports/rp2/boards/W5100S_EVB_PICO/manifest.py
@@ -0,0 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py")

require("bundle-networking")
1 change: 1 addition & 0 deletions ports/rp2/boards/W5100S_EVB_PICO/mpconfigboard.cmake
Expand Up @@ -2,3 +2,4 @@
set(PICO_BOARD wiznet_w5100s_evb_pico)
set(MICROPY_PY_NETWORK_WIZNET5K W5100S)
set(MICROPY_PY_LWIP 1)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
3 changes: 3 additions & 0 deletions ports/rp2/boards/W5500_EVB_PICO/manifest.py
@@ -0,0 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py")

require("bundle-networking")
1 change: 1 addition & 0 deletions ports/rp2/boards/W5500_EVB_PICO/mpconfigboard.cmake
Expand Up @@ -2,3 +2,4 @@
set(PICO_BOARD wiznet_w5100s_evb_pico)
set(MICROPY_PY_NETWORK_WIZNET5K W5500)
set(MICROPY_PY_LWIP 1)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
4 changes: 1 addition & 3 deletions ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py
@@ -1,9 +1,7 @@
include("$(PORT_DIR)/boards/manifest.py")

# Networking
require("webrepl")
require("urequests")
require("ntptime")
require("bundle-networking")

# Utils
require("logging")
Expand Down
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F429ZI/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F429ZI/mpconfigboard.mk
Expand Up @@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F439ZI/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F439ZI/mpconfigboard.mk
Expand Up @@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F746ZG/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F746ZG/mpconfigboard.mk
Expand Up @@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F756ZG/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F756ZG/mpconfigboard.mk
Expand Up @@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F767ZI/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_F767ZI/mpconfigboard.mk
Expand Up @@ -10,3 +10,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_H743ZI/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/NUCLEO_H743ZI/mpconfigboard.mk
Expand Up @@ -21,3 +21,5 @@ MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1
MICROPY_VFS_LFS2 = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/OLIMEX_E407/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 1 addition & 1 deletion ports/stm32/boards/PYBD_SF2/manifest.py
@@ -1,3 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py")
include("$(PORT_DIR)/boards/manifest_pyboard.py")
require("webrepl")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/STM32F769DISC/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/STM32F769DISC/mpconfigboard.mk
Expand Up @@ -44,3 +44,5 @@ endif
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/STM32F7DISC/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/STM32F7DISC/mpconfigboard.mk
Expand Up @@ -9,3 +9,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/VCC_GND_F407ZG/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
2 changes: 2 additions & 0 deletions ports/stm32/boards/VCC_GND_F407ZG/mpconfigboard.mk
Expand Up @@ -8,3 +8,5 @@ TEXT1_ADDR = 0x08020000
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py

0 comments on commit 6250337

Please sign in to comment.