@@ -140,7 +140,7 @@ def id(self) -> Optional[str]:
140
140
elif chip_id == chips .A10 :
141
141
board_id = self ._armbian_id ()
142
142
elif chip_id == chips .A20 :
143
- board_id = self ._armbian_id ()
143
+ board_id = self ._armbian_id () or self . _allwinner_variants_id ()
144
144
elif chip_id == chips .A64 :
145
145
board_id = self ._pine64_id ()
146
146
elif chip_id == chips .H6 :
@@ -704,6 +704,9 @@ def _allwinner_variants_id(self) -> Optional[str]:
704
704
elif "walnutpi-1b" in board_value :
705
705
board = boards .WALNUT_PI_1B
706
706
# TODO: Add other specifc board contexts here
707
+
708
+ elif "lime2" in board_value :
709
+ board = boards .OLIMEX_LIME2
707
710
return board
708
711
709
712
# pylint: disable=too-many-return-statements
@@ -931,6 +934,11 @@ def any_nxp_navq_board(self) -> bool:
931
934
"""Check whether the current board is any NXP NavQ board"""
932
935
return self .id in boards ._NXP_SOM_IDS
933
936
937
+ @property
938
+ def any_olimex_lime2_board (self ):
939
+ """Check whether the current board is any Pine64 device."""
940
+ return self .id in boards .OLIMEX_LIME2
941
+
934
942
@property
935
943
def os_environ_board (self ) -> bool :
936
944
"""Check whether the current board is an OS environment variable special case."""
@@ -993,6 +1001,7 @@ def lazily_generate_conditions():
993
1001
yield self .generic_linux
994
1002
yield self .any_nxp_navq_board
995
1003
yield self .any_walnutpi
1004
+ yield self .any_olimex_lime2_board
996
1005
997
1006
return any (condition for condition in lazily_generate_conditions ())
998
1007
0 commit comments