diff options
| author | hathach <[email protected]> | 2026-07-30 02:35:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-07-30 02:35:02 +0700 |
| commit | 6271842ea874812f1157b42bcd650c59ab59259b (patch) | |
| tree | fba445d655d77108700c519f3c8f1f7346a9318e /hw | |
| parent | 1b628e3fb581d56639fac9287448203db7d10ff1 (diff) | |
| parent | eef5af86aa26fe3d72e41156a586a6ed3ffce9f8 (diff) | |
Merge remote-tracking branch 'origin/master' into tmp/pr3790-merge
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/mcx/family.cmake | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/hw/bsp/mcx/family.cmake b/hw/bsp/mcx/family.cmake index 89e2aadf2..60f43e152 100644 --- a/hw/bsp/mcx/family.cmake +++ b/hw/bsp/mcx/family.cmake @@ -94,10 +94,19 @@ function(family_configure_example TARGET RTOS) family_add_tinyusb(${TARGET} OPT_MCU_MCXA15) endif() + # PORT is set per board (board.cmake), so pick the driver at configure time. Spelled out + # rather than $<IF:${PORT},...> so the port path stays greppable: test/hil/hil_select.py + # maps a portable-driver change to the families whose build file names that directory. + if (PORT) + set(PORT_SRC ${TOP}/src/portable/chipidea/ci_hs/dcd_ci_hs.c) + else () + set(PORT_SRC ${TOP}/src/portable/chipidea/ci_fs/dcd_ci_fs.c) + endif () + target_sources(${TARGET} PUBLIC ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/family.c ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../board.c - ${TOP}/src/portable/chipidea/$<IF:${PORT},ci_hs/dcd_ci_hs.c,ci_fs/dcd_ci_fs.c> + ${PORT_SRC} ${STARTUP_FILE_${CMAKE_C_COMPILER_ID}} ) target_include_directories(${TARGET} PUBLIC |
