Skip to content

Commit 77ae1d3

Browse files
committed
Setting MICROPY_BOARD_DIR
1 parent 0b0a418 commit 77ae1d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

firmware/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ if(NOT EXISTS ${CUSTOM_BOARD_DIR}/mpconfigboard.cmake)
2222
message(FATAL_ERROR "Invalid MICROPY_BOARD specified: ${MICROPY_BOARD}")
2323
endif()
2424

25+
# Make the board dir available to sub-builds (used by esp32_common.cmake for include paths)
26+
set(MICROPY_BOARD_DIR ${CUSTOM_BOARD_DIR} CACHE PATH "Path to MicroPython board directory")
27+
2528
# If a board variant is specified, check that it exists.
2629
if(MICROPY_BOARD_VARIANT)
2730
if(NOT EXISTS ${CUSTOM_BOARD_DIR}/mpconfigvariant_${MICROPY_BOARD_VARIANT}.cmake)

scripts/build_and_check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function finish {
1616
}
1717
trap finish EXIT
1818

19-
BOARD=${1:-MICROLITE}
19+
BOARD=${1:-ESP32_GENERIC_S3}
2020
IDF_VERSION=${IDF_VERSION:-v5.4.2}
2121

2222
# Define the absolute path to the micropython folder
@@ -79,6 +79,7 @@ fi
7979

8080
idf.py -B "${BUILD_DIR}" build \
8181
-DMICROPY_BOARD=${BOARD} \
82+
-DMICROPY_BOARD_DIR="${BOARD_DIR}" \
8283
-DMICROPY_BOARD_VARIANT=SPIRAM_OCT \
8384
-DCMAKE_C_FLAGS="-Wno-error=stringop-overflow -Wno-stringop-overflow" \
8485
-DCMAKE_CXX_FLAGS="-fno-rtti" \

0 commit comments

Comments
 (0)