@@ -142,9 +142,15 @@ def id(self) -> Optional[str]:
142
142
elif chip_id == chips .A64 :
143
143
board_id = self ._pine64_id ()
144
144
elif chip_id == chips .H6 :
145
- board_id = self ._pine64_id () or self ._armbian_id ()
145
+ board_id = (
146
+ self ._pine64_id () or self ._armbian_id () or self ._repka_variants_id ()
147
+ )
146
148
elif chip_id == chips .H5 :
147
- board_id = self ._armbian_id () or self ._allwinner_variants_id ()
149
+ board_id = (
150
+ self ._armbian_id ()
151
+ or self ._allwinner_variants_id ()
152
+ or self ._repka_variants_id ()
153
+ )
148
154
elif chip_id == chips .H616 :
149
155
board_id = self ._armbian_id () or self ._allwinner_variants_id ()
150
156
elif chip_id == chips .A33 :
@@ -420,6 +426,10 @@ def _armbian_id(self) -> Optional[str]:
420
426
board = boards .PCDUINO3
421
427
elif board_value == "rock-3a" :
422
428
board = boards .ROCK_PI_3A
429
+ elif board_value == "repka-pi3-h5" :
430
+ board = boards .REPKA_PI_3_H5
431
+ elif board_value == "repka-pi4-h6" :
432
+ board = boards .REPKA_PI_4_H6
423
433
elif board_value == "milkv_duo" :
424
434
board = boards .MILKV_DUO
425
435
return board
@@ -713,6 +723,19 @@ def _allwinner_variants_id(self) -> Optional[str]:
713
723
board = boards .OLIMEX_LIME2
714
724
return board
715
725
726
+ def _repka_variants_id (self ) -> Optional [str ]:
727
+ board_value = self .detector .get_device_model ()
728
+ board = None
729
+ if not board_value :
730
+ return board
731
+ board_value = board_value .lower ()
732
+ if "repka-pi3-h5" in board_value :
733
+ board = boards .REPKA_PI_3_H5
734
+ if "repka-pi4-h6" in board_value :
735
+ board = boards .REPKA_PI_4_H6
736
+
737
+ return board
738
+
716
739
# pylint: disable=too-many-return-statements
717
740
718
741
def _rp2040_u2if_id (self ) -> Optional [str ]:
@@ -948,6 +971,11 @@ def any_olimex_lime2_board(self):
948
971
"""Check whether the current board is any Pine64 device."""
949
972
return self .id in boards .OLIMEX_LIME2
950
973
974
+ @property
975
+ def any_repka_board (self ):
976
+ """Check whether the current board is any Repka device."""
977
+ return self .id in boards ._REPKA_PI_IDS
978
+
951
979
@property
952
980
def os_environ_board (self ) -> bool :
953
981
"""Check whether the current board is an OS environment variable special case."""
@@ -1011,6 +1039,7 @@ def lazily_generate_conditions():
1011
1039
yield self .any_nxp_navq_board
1012
1040
yield self .any_walnutpi
1013
1041
yield self .any_olimex_lime2_board
1042
+ yield self .any_repka_board
1014
1043
yield self .any_milkv_board
1015
1044
1016
1045
return any (condition for condition in lazily_generate_conditions ())
0 commit comments