From b0faba6627d7a69bb0333ced4636059499ce6657 Mon Sep 17 00:00:00 2001 From: Mark Grosen Date: Wed, 24 Apr 2024 20:22:40 -0700 Subject: [PATCH] rp2/CMakeLists.txt: Enable pins.csv usage for out-of-tree boards The current generation of pins.h hard-codes rp2/boards as the directory for the board being built. Change this to use the value of MICROPY_BOARD_DIR to find pins.csv for both in-tree and out-of-tree boards. Signed-off-by: Mark Grosen --- ports/rp2/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt index fcc435b7b9..ca62c6f6b8 100644 --- a/ports/rp2/CMakeLists.txt +++ b/ports/rp2/CMakeLists.txt @@ -537,8 +537,8 @@ set(GEN_PINS_MKPINS "${MICROPY_BOARDS_DIR}/make-pins.py") set(GEN_PINS_SRC "${CMAKE_BINARY_DIR}/pins_${MICROPY_BOARD}.c") set(GEN_PINS_HDR "${MICROPY_GENHDR_DIR}/pins.h") -if(EXISTS "${MICROPY_BOARDS_DIR}/${MICROPY_BOARD}/pins.csv") - set(GEN_PINS_BOARD_CSV "${MICROPY_BOARDS_DIR}/${MICROPY_BOARD}/pins.csv") +if(EXISTS "${MICROPY_BOARD_DIR}/pins.csv") + set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_DIR}/pins.csv") set(GEN_PINS_CSV_ARG --board-csv "${GEN_PINS_BOARD_CSV}") endif()