add option to pass symbol defines to ci build.py

add build.args option for hil json
add MAX3421_HOST=1 for metro m4 express
This commit is contained in:
hathach
2025-07-09 17:58:11 +07:00
parent 227b22de02
commit b5694fd40a
5 changed files with 34 additions and 21 deletions

View File

@@ -3,9 +3,6 @@ set(SAM_FAMILY samd51)
set(JLINK_DEVICE ATSAMD51J19)
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/${BOARD}.ld)
# force max3421e for testing with hardware-in-the-loop
set(MAX3421_HOST 1)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
__SAMD51J19A__