Browse Source

esp32/main: Allow MICROPY_DIR to be overridden.

This is necessary when building a custom out-of-tree board.

Signed-off-by: Damien George <damien@micropython.org>
pull/7453/head
Damien George 3 years ago
parent
commit
0009a7dc30
  1. 4
      ports/esp32/main/CMakeLists.txt

4
ports/esp32/main/CMakeLists.txt

@ -1,5 +1,7 @@
# Set location of base MicroPython directory.
get_filename_component(MICROPY_DIR ${PROJECT_DIR}/../.. ABSOLUTE)
if(NOT MICROPY_DIR)
get_filename_component(MICROPY_DIR ${PROJECT_DIR}/../.. ABSOLUTE)
endif()
# Include core source components.
include(${MICROPY_DIR}/py/py.cmake)

Loading…
Cancel
Save