Skip to content

Commit 043ba45

Browse files
projectgusdpgeorge
authored andcommitted
esp32: Add some notes about the different CMake files.
Signed-off-by: Angus Gratton <[email protected]>
1 parent ff70a91 commit 043ba45

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ports/esp32/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Top-level cmake file for building MicroPython on ESP32.
2-
2+
#
3+
# Note for maintainers: Where possible, functionality should be put into
4+
# esp32_common.cmake not this file. This is because this CMakeLists.txt file
5+
# needs to be duplicated for out-of-tree builds, and can easily get out of date.
36
cmake_minimum_required(VERSION 3.12)
47

58
# Retrieve IDF version

ports/esp32/esp32_common.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# This is the common ESP-IDF "main component" CMakeLists.txt contents for MicroPython.
2+
#
3+
# This file is included directly from a main_${IDF_TARGET}/CMakeLists.txt file
4+
# (or included from an out-of-tree main component CMakeLists.txt for out-of-tree
5+
# builds.)
6+
17
# Set location of base MicroPython directory.
28
if(NOT MICROPY_DIR)
39
get_filename_component(MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR}/../.. ABSOLUTE)

0 commit comments

Comments
 (0)