kopia lustrzana https://github.com/micropython/micropython
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 <mark@grosen.org>pull/14375/head
rodzic
9c7f0659e2
commit
b0faba6627
|
@ -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()
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue