From 5ed5d2feebb5e82b7c70e64a3a059efa11051772 Mon Sep 17 00:00:00 2001 From: dequis <dx@dxzone.com.ar> Date: Tue, 16 May 2023 23:20:39 +0200 Subject: [PATCH] Freeze .py files in python_payload into the firmware --- main/CMakeLists.txt | 2 +- manifest.py | 2 ++ python_payload/boot.py | 6 ------ 3 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 manifest.py delete mode 100644 python_payload/boot.py diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index fd1ee89789..6916840623 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -138,7 +138,7 @@ set(IDF_COMPONENTS xtensa ) -set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py) +set(MICROPY_FROZEN_MANIFEST ${PROJECT_DIR}/manifest.py) set(MICROPY_CROSS_FLAGS -march=xtensawin) idf_component_register( diff --git a/manifest.py b/manifest.py new file mode 100644 index 0000000000..2ffcbedb22 --- /dev/null +++ b/manifest.py @@ -0,0 +1,2 @@ +include("micropython/ports/esp32/boards") +freeze("./python_payload") diff --git a/python_payload/boot.py b/python_payload/boot.py deleted file mode 100644 index 38a85e0666..0000000000 --- a/python_payload/boot.py +++ /dev/null @@ -1,6 +0,0 @@ -# This file is executed on every boot (including wake-boot from deepsleep) -#import esp -#esp.osdebug(None) -#import webrepl -#webrepl.start() -import main -- GitLab