File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ set(SDKCONFIG_DEFAULTS ${CMAKE_BINARY_DIR}/sdkconfig.combined)
6464
6565# Build with our custom full.cmake file
6666set (USER_C_MODULES
67- ${PROJECT_DIR } /src/full.cmake
67+ ${CMAKE_CURRENT_LIST_DIR } /src/full.cmake
6868)
6969
7070# Include main IDF cmake file.
Original file line number Diff line number Diff line change 11# Set location of base MicroPython directory.
22if (NOT MICROPY_DIR)
3- get_filename_component (MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR} /../../.. ABSOLUTE )
3+ get_filename_component (MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR} /../third_party/micropython ABSOLUTE )
44endif ()
55
66# Set location of the ESP32 port directory.
Original file line number Diff line number Diff line change 2424# THE SOFTWARE.
2525#/
2626
27- # Log the PROJECT_DIR value
28- message (STATUS "PROJECT_DIR=${PROJECT_DIR} " )
29-
30- get_filename_component (MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR} /../third_party/micropython ABSOLUTE )
27+ if (NOT MICROPY_DIR)
28+ get_filename_component (MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR} /../third_party/micropython ABSOLUTE )
29+ endif ()
3130
3231# `py.cmake` for `micropy_gather_target_properties` macro usage
3332include (${MICROPY_DIR} /py/py.cmake)
3433
3534include (${CMAKE_CURRENT_LIST_DIR} /esp_nn.cmake)
3635
37- get_filename_component (TENSORFLOW_DIR ${PROJECT_DIR} /../../../tensorflow ABSOLUTE )
38-
3936add_library (microlite INTERFACE )
4037
41- # needed when we have custom/specialized kernels.
42- # add_custom_command(
43- # OUTPUT ${TF_MICROLITE_SPECIALIZED_SRCS}
44- # COMMAND cd ${TENSORFLOW_DIR} && ${Python3_EXECUTABLE} ${MICROPY_DIR}/py/makeversionhdr.py ${MICROPY_MPVERSION}
45- # DEPENDS MICROPY_FORCE_BUILD
46- # )
47-
4838if (CONFIG_IDF_TARGET)
4939 set (TF_ESP_DIR "${CMAKE_CURRENT_LIST_DIR} /../third_party/esp-tflite-micro" )
5040 set (TF_DIR "${TF_ESP_DIR} /tensorflow" )
You can’t perform that action at this time.
0 commit comments