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>
This commit is contained in:
parent
c99e4995fd
commit
0009a7dc30
|
@ -1,5 +1,7 @@
|
|||
# Set location of base MicroPython directory.
|
||||
if(NOT MICROPY_DIR)
|
||||
get_filename_component(MICROPY_DIR ${PROJECT_DIR}/../.. ABSOLUTE)
|
||||
endif()
|
||||
|
||||
# Include core source components.
|
||||
include(${MICROPY_DIR}/py/py.cmake)
|
||||
|
|
Loading…
Reference in New Issue