summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-04-04 21:35:42 +0700
committerhathach <[email protected]>2026-04-04 21:35:42 +0700
commit3747355841f35cf5f1b2998c1806d8d19b167722 (patch)
tree8476c83825ce0235247361adae46a07275726dfc
parent9838a231ad9bff623a3ec819d05aad4a4087193b (diff)
move MAX3421_HOST build flag to test config for metro_m4_express
-rw-r--r--hw/bsp/samd5x_e5x/boards/metro_m4_express/board.cmake2
-rw-r--r--hw/bsp/samd5x_e5x/boards/metro_m4_express/board.mk2
-rw-r--r--test/hil/tinyusb.json5
3 files changed, 5 insertions, 4 deletions
diff --git a/hw/bsp/samd5x_e5x/boards/metro_m4_express/board.cmake b/hw/bsp/samd5x_e5x/boards/metro_m4_express/board.cmake
index 50fbe64b0..86d12ca24 100644
--- a/hw/bsp/samd5x_e5x/boards/metro_m4_express/board.cmake
+++ b/hw/bsp/samd5x_e5x/boards/metro_m4_express/board.cmake
@@ -3,8 +3,6 @@ set(SAM_FAMILY samd51)
set(JLINK_DEVICE ATSAMD51J19)
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/${BOARD}.ld)
-set(MAX3421_HOST 1)
-
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
__SAMD51J19A__
diff --git a/hw/bsp/samd5x_e5x/boards/metro_m4_express/board.mk b/hw/bsp/samd5x_e5x/boards/metro_m4_express/board.mk
index f0f097c2a..eba7070c1 100644
--- a/hw/bsp/samd5x_e5x/boards/metro_m4_express/board.mk
+++ b/hw/bsp/samd5x_e5x/boards/metro_m4_express/board.mk
@@ -2,8 +2,6 @@ SAM_FAMILY = samd51
CFLAGS += -D__SAMD51J19A__
-MAX3421_HOST = 1
-
# All source paths should be relative to the top level.
LD_FILE = $(BOARD_PATH)/$(BOARD).ld
diff --git a/test/hil/tinyusb.json b/test/hil/tinyusb.json
index 3c03b3721..92b7b21b0 100644
--- a/test/hil/tinyusb.json
+++ b/test/hil/tinyusb.json
@@ -62,6 +62,11 @@
{
"name": "metro_m4_express",
"uid": "9995AD485337433231202020FF100A34",
+ "build": {
+ "args": [
+ "MAX3421_HOST=1"
+ ]
+ },
"tests": {
"device": true,
"host": false,