Page 1 of 1

Modules in manifest_release.py not in firmware.bin

Posted: Thu Jun 30, 2022 4:30 am
by bborncr
Following the instructions in ports/esp32/README.md, no errors that I can see.
Everything appears to work however the following modules are not in the build, noticeably urequests and umqtt.
The only place I can find that mentions the modules is in manifest_release.py

Code: Select all

git clone git@github.com:micropython/micropython.git
cd micropython
make -C mpy-cross
cd ports/esp32
make submodules
make
Any tips on why this build is not working?

Re: Modules in manifest_release.py not in firmware.bin

Posted: Thu Jun 30, 2022 4:48 am
by jimmo
bborncr wrote:
Thu Jun 30, 2022 4:30 am
Any tips on why this build is not working?
The release manifest is only used to make release firmware (i.e. what goes to the downloads page).

If you want to replicate the release build, then

Code: Select all

make FROZEN_MANIFEST=boards/manifest_release.py
(you may need to "make clean" first)

Re: Modules in manifest_release.py not in firmware.bin

Posted: Thu Jun 30, 2022 1:38 pm
by bborncr
Thanks! I thought we were good to go but got this error close to the end of the build:

Code: Select all

[1050/1273] Generating ../../frozen_content.c
FAILED: frozen_content.c
cd /root/micropython/ports/esp32/build-GENERIC/esp-idf/main && /root/.espressif/pyt   hon_env/idf4.2_py3.8_env/bin/python3.8 /root/micropython/tools/makemanifest.py -o /   root/micropython/ports/esp32/build-GENERIC/frozen_content.c -v MPY_DIR=/root/microp   ython -v MPY_LIB_DIR=/root/micropython/../micropython-lib -v PORT_DIR=/root/micropy   thon/ports/esp32 -v BOARD_DIR=/root/micropython/ports/esp32/boards/GENERIC -b /root   /micropython/ports/esp32/build-GENERIC -f-march=xtensawin boards/manifest_release.p   y
Traceback (most recent call last):
  File "/root/micropython/tools/makemanifest.py", line 435, in <module>
    main()
  File "/root/micropython/tools/makemanifest.py", line 347, in main
    include(input_manifest)
  File "/root/micropython/tools/makemanifest.py", line 65, in include
    with open(manifest) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/micropython/ports/es   p32/build-GENERIC/esp-idf/main/boards/manifest_release.py'
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
make: *** [Makefile:34: all] Error 2
I checked in '/root/micropython/ports/esp32/build-GENERIC/esp-idf/main/' and there is no 'boards/manifest_release.py' in there.

Re: Modules in manifest_release.py not in firmware.bin

Posted: Thu Jun 30, 2022 11:44 pm
by jimmo
bborncr wrote:
Thu Jun 30, 2022 1:38 pm
I checked in '/root/micropython/ports/esp32/build-GENERIC/esp-idf/main/' and there is no 'boards/manifest_release.py' in there.
Ah sorry, it appears to require a path relative to the build directory. Easier just to use an absolute path

Code: Select all

make FROZEN_MANIFEST=$PWD/boards/manifest_release.py

Re: Modules in manifest_release.py not in firmware.bin

Posted: Fri Jul 01, 2022 2:06 pm
by bborncr
Thanks! The release-build works, including my own modules!