@@ -167,6 +167,7 @@ def id(self) -> Optional[str]:
167
167
or self ._armbian_id ()
168
168
or self ._diet_pi_id ()
169
169
or self ._asus_tinker_board_id ()
170
+ or self ._vivid_unit_id ()
170
171
)
171
172
elif chip_id == chips .RK3399PRO :
172
173
board_id = self ._asus_tinker_board_id ()
@@ -712,6 +713,14 @@ def _asus_tinker_board_id(self) -> Optional[str]:
712
713
713
714
return board
714
715
716
+ def _vivid_unit_id (self ) -> Optional [str ]:
717
+ """Check what type of vivid unit."""
718
+ board_value = self .detector .get_device_model ()
719
+ board = None
720
+ if board_value and "RK3399 VIVID" in board_value :
721
+ board = boards .VIVID_UNIT
722
+ return board
723
+
715
724
def _pcduino_board_id (self ) -> Optional [str ]:
716
725
"""Check on the type of Pcduino"""
717
726
board_value = self .detector .get_device_model ()
@@ -1023,7 +1032,7 @@ def any_nxp_navq_board(self) -> bool:
1023
1032
1024
1033
@property
1025
1034
def any_olimex_board (self ):
1026
- """Check whether the current board is any Pine64 device."""
1035
+ """Check whether the current board is any Olimex device."""
1027
1036
return self .id in boards ._OLIMEX_IDS
1028
1037
1029
1038
@property
@@ -1036,6 +1045,11 @@ def any_luckfox_pico_board(self):
1036
1045
"""Check whether the current board is any Luckfox Pico device."""
1037
1046
return self .id in boards ._LUCKFOX_IDS
1038
1047
1048
+ @property
1049
+ def any_vivid_unit (self ):
1050
+ """Check whether the current board is any Vivid Unit device."""
1051
+ return self .id in boards ._VIVID_UNIT_IDS
1052
+
1039
1053
@property
1040
1054
def os_environ_board (self ) -> bool :
1041
1055
"""Check whether the current board is an OS environment variable special case."""
@@ -1103,6 +1117,7 @@ def lazily_generate_conditions():
1103
1117
yield self .any_repka_board
1104
1118
yield self .any_milkv_board
1105
1119
yield self .any_luckfox_pico_board
1120
+ yield self .any_vivid_unit
1106
1121
1107
1122
return any (condition for condition in lazily_generate_conditions ())
1108
1123
0 commit comments