Commit da7f2537 authored by Jim Mussared's avatar Jim Mussared

top: Use micropython-lib unconditionally in manifests.

micropython-lib is now a submodule, and the manifest compilation process
will ensure it is available, so manifests no longer need to check that it
is available.
Signed-off-by: default avatarJim Mussared <jim.mussared@gmail.com>
parent 0b26efe7
...@@ -7,15 +7,13 @@ include("$(MPY_DIR)/extmod/uasyncio/manifest.py") ...@@ -7,15 +7,13 @@ include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
# drivers # drivers
freeze("$(MPY_DIR)/drivers/display", "ssd1306.py") freeze("$(MPY_DIR)/drivers/display", "ssd1306.py")
# Libraries from micropython-lib, include only if the library directory exists # micropython-lib: file utilities
if os.path.isdir(convert_path("$(MPY_LIB_DIR)")): freeze("$(MPY_LIB_DIR)/micropython/upysh", "upysh.py")
# file utilities
freeze("$(MPY_LIB_DIR)/micropython/upysh", "upysh.py")
# requests # micropython-lib: requests
freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py") freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
freeze("$(MPY_LIB_DIR)/micropython/urllib.urequest", "urllib/urequest.py") freeze("$(MPY_LIB_DIR)/micropython/urllib.urequest", "urllib/urequest.py")
# umqtt # micropython-lib: umqtt
freeze("$(MPY_LIB_DIR)/micropython/umqtt.simple", "umqtt/simple.py") freeze("$(MPY_LIB_DIR)/micropython/umqtt.simple", "umqtt/simple.py")
freeze("$(MPY_LIB_DIR)/micropython/umqtt.robust", "umqtt/robust.py") freeze("$(MPY_LIB_DIR)/micropython/umqtt.robust", "umqtt/robust.py")
...@@ -8,5 +8,4 @@ include( ...@@ -8,5 +8,4 @@ include(
l2cap=True, l2cap=True,
security=True, security=True,
) )
if os.path.isdir(convert_path("$(MPY_LIB_DIR)")): freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
...@@ -4,5 +4,4 @@ freeze("$(MPY_DIR)/tools", "upip.py") ...@@ -4,5 +4,4 @@ freeze("$(MPY_DIR)/tools", "upip.py")
freeze("$(MPY_DIR)/tools", "upip_utarfile.py") freeze("$(MPY_DIR)/tools", "upip_utarfile.py")
freeze("$(MPY_DIR)/extmod", "ntptime.py") freeze("$(MPY_DIR)/extmod", "ntptime.py")
if os.path.isdir(convert_path("$(MPY_LIB_DIR)")): freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment