Skip to content

Commit

Permalink
Merge pull request #1130 from UncleGrumpy/esp32_warn_no_esp32boot
Browse files Browse the repository at this point in the history
Warn during ESP32 builds if esp32boot.avm is not found

To help users avoid problems using ./build/mkimage.sh from the esp32 directory
a warning is emitted if esp32boot.avm cannot be found from a previous
generic_unix build during configuration. This warning contains a link to the
complete Build Instructions. This easy to miss step was responsible for some
confusion that was recently discussed and solved on erlangforums.com.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
  • Loading branch information
bettio committed Apr 16, 2024
2 parents 63faf7a + 42c87b0 commit 203a6a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platforms/esp32/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ file(COPY ${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/flash.sh
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)

if (NOT EXISTS ../../../../build/libs/esp32boot/esp32boot.avm)
message(WARNING "A generic_unix build must be done first in the top level AtomVM/build directory! \n\
Consult https://www.atomvm.net/doc/main/build-instructions.html for build instructions.")
endif()

0 comments on commit 203a6a2

Please sign in to comment.