@@ -342,7 +342,7 @@ def _tisk_id(self) -> Optional[str]:
342
342
343
343
# pylint: disable=too-many-return-statements
344
344
def _armbian_id (self ) -> Optional [str ]:
345
- """Check whether the current board is an OrangePi board ."""
345
+ """Get the current board via the ARMBIAN release field ."""
346
346
board_value = self .detector .get_armbian_release_field ("BOARD" )
347
347
board = None
348
348
@@ -384,6 +384,8 @@ def _armbian_id(self) -> Optional[str]:
384
384
board = boards .BANANA_PI_M2_BERRY
385
385
elif board_value == "bananapim5" :
386
386
board = boards .BANANA_PI_M5
387
+ elif board_value == "bananapipro" :
388
+ board = boards .LEMAKER_BANANA_PRO
387
389
elif board_value == "orangepizeroplus2-h5" :
388
390
board = boards .ORANGE_PI_ZERO_PLUS_2H5
389
391
elif board_value == "orangepizeroplus" :
@@ -860,6 +862,11 @@ def any_bananapi(self) -> bool:
860
862
"""Check whether the current board is any BananaPi-family system."""
861
863
return self .id in boards ._BANANA_PI_IDS
862
864
865
+ @property
866
+ def any_lemaker (self ) -> bool :
867
+ """Check whether the current board is any LeMaker board."""
868
+ return self .id in boards ._LEMAKER_IDS
869
+
863
870
@property
864
871
def any_maaxboard (self ) -> bool :
865
872
"""Check whether the current board is any BananaPi-family system."""
@@ -937,6 +944,7 @@ def lazily_generate_conditions():
937
944
yield self .any_stm32mp1
938
945
yield self .any_lubancat
939
946
yield self .any_bananapi
947
+ yield self .any_lemaker
940
948
yield self .any_maaxboard
941
949
yield self .any_tisk_board
942
950
yield self .any_siemens_simatic_iot2000
0 commit comments