tmedicci opened a new pull request, #16320: URL: https://github.com/apache/nuttx/pull/16320
## Summary * espressif: Add variable to override MCUboot version and URL The version and the git repository of Espressif's MCUboot port can be changed by setting the `MCUBOOT_VERSION` and `MCUBOOT_URL` environment variables before running the `make bootloader` command. ## Impact Impact on user: NO. Impact on build: YES. If the environment variables `MCUBOOT_VERSION` and `MCUBOOT_URL` are set, use them instead of the default values. Impact on hardware: NO. Impact on documentation: NO. Impact on security: NO. Impact on compatibility: NO. ## Testing This can be tested by setting it to other values and checking the folder where MCUboot is cloned. For ESP32-S3, for instance, the default values for `MCUBOOT_VERSION` and `MCUBOOT_URL` are defined by, respectively, by `CONFIG_ESP32S3_MCUBOOT_VERSION` (which currently is set to `20f98e0a975c24864872e0df5701eb1082e9c957`) and `https://github.com/mcu-tools/mcuboot`. ### Building In this test, set another version and clone it from another repository (a fork, for instance): ``` make -j distclean && ./tools/configure.sh esp32s3-devkit:mcuboot_nsh && MCUBOOT_VERSION="f6e8e88aa693c376a7e71d44aa04bc9908f0e74e" MCUBOOT_URL="https://github.com/tmedicci/mcuboot" make bootloader ``` ### Running Wait for the bootloader to be built... ### Results Check the `nuttx/arch/xtensa/src/chip/bootloader/mcuboot` folder: #### The version ``` $ git --no-pager show commit f6e8e88aa693c376a7e71d44aa04bc9908f0e74e (HEAD, origin/main, origin/HEAD, main) ``` #### The git repository ``` git remote -v origin https://github.com/tmedicci/mcuboot (fetch) origin https://github.com/tmedicci/mcuboot (push) ``` Both the git repository and the version retrieved correspond to the overridden values. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org