@@ -209,6 +209,8 @@ def id(self) -> Optional[str]:
209
209
board_id = self ._armbian_id ()
210
210
elif chip_id == chips .S905X :
211
211
board_id = boards .AML_S905X_CC
212
+ elif chip_id == chips .CV1800B :
213
+ board_id = boards .MILKV_DUO
212
214
self ._board_id = board_id
213
215
return board_id
214
216
@@ -428,6 +430,8 @@ def _armbian_id(self) -> Optional[str]:
428
430
board = boards .REPKA_PI_3_H5
429
431
elif board_value == "repka-pi4-h6" :
430
432
board = boards .REPKA_PI_4_H6
433
+ elif board_value == "milkv_duo" :
434
+ board = boards .MILKV_DUO
431
435
return board
432
436
433
437
# pylint: enable=too-many-return-statements
@@ -887,6 +891,11 @@ def any_pine64_board(self) -> bool:
887
891
"""Check whether the current board is any Pine64 device."""
888
892
return self .id in boards ._PINE64_DEV_IDS
889
893
894
+ @property
895
+ def any_milkv_board (self ) -> bool :
896
+ """Check whether the current board is any MilkV device."""
897
+ return self .id in boards ._MILKV_IDS_
898
+
890
899
@property
891
900
def any_rock_pi_board (self ) -> bool :
892
901
"""Check whether the current board is any Rock Pi device."""
@@ -1031,6 +1040,7 @@ def lazily_generate_conditions():
1031
1040
yield self .any_walnutpi
1032
1041
yield self .any_olimex_lime2_board
1033
1042
yield self .any_repka_board
1043
+ yield self .any_milkv_board
1034
1044
1035
1045
return any (condition for condition in lazily_generate_conditions ())
1036
1046
0 commit comments