@@ -203,6 +203,8 @@ def id(self) -> Optional[str]:
203
203
board_id = self ._armbian_id ()
204
204
elif chip_id == chips .S905X :
205
205
board_id = boards .AML_S905X_CC
206
+ elif chip_id == chips .CV1800B :
207
+ board_id = boards .MILKV_DUO
206
208
self ._board_id = board_id
207
209
return board_id
208
210
@@ -418,6 +420,8 @@ def _armbian_id(self) -> Optional[str]:
418
420
board = boards .PCDUINO3
419
421
elif board_value == "rock-3a" :
420
422
board = boards .ROCK_PI_3A
423
+ elif board_value == "milkv_duo" :
424
+ board = boards .MILKV_DUO
421
425
return board
422
426
423
427
# pylint: enable=too-many-return-statements
@@ -864,6 +868,11 @@ def any_pine64_board(self) -> bool:
864
868
"""Check whether the current board is any Pine64 device."""
865
869
return self .id in boards ._PINE64_DEV_IDS
866
870
871
+ @property
872
+ def any_milkv_board (self ) -> bool :
873
+ """Check whether the current board is any MilkV device."""
874
+ return self .id in boards ._MILKV_IDS_
875
+
867
876
@property
868
877
def any_rock_pi_board (self ) -> bool :
869
878
"""Check whether the current board is any Rock Pi device."""
@@ -1002,6 +1011,7 @@ def lazily_generate_conditions():
1002
1011
yield self .any_nxp_navq_board
1003
1012
yield self .any_walnutpi
1004
1013
yield self .any_olimex_lime2_board
1014
+ yield self .any_milkv_board
1005
1015
1006
1016
return any (condition for condition in lazily_generate_conditions ())
1007
1017
0 commit comments