File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -686,6 +686,8 @@ def _allwinner_variants_id(self) -> Optional[str]:
686
686
board = boards .ORANGE_PI_ZERO_PLUS_2H5
687
687
elif "H616" in chip_id :
688
688
board = boards .ORANGE_PI_ZERO_2
689
+ elif "walnutpi-1b" in board_value :
690
+ board = boards .WALNUT_PI_1B
689
691
# TODO: Add other specifc board contexts here
690
692
return board
691
693
@@ -749,6 +751,11 @@ def any_siemens_simatic_iot2000(self) -> bool:
749
751
"""Check whether the current board is a SIEMENS SIMATIC IOT2000 Gateway."""
750
752
return self .id in boards ._SIEMENS_SIMATIC_IOT2000_IDS
751
753
754
+ @property
755
+ def any_walnutpi (self ) -> bool :
756
+ """Check whether the current board is any defined Walnut Pi."""
757
+ return self .id in boards ._WALNUT_PI_IDS
758
+
752
759
@property
753
760
def any_nanopi (self ) -> bool :
754
761
"""Check whether the current board is any defined Nano Pi."""
@@ -970,6 +977,7 @@ def lazily_generate_conditions():
970
977
yield self .any_libre_computer_board
971
978
yield self .generic_linux
972
979
yield self .any_nxp_navq_board
980
+ yield self .any_walnutpi
973
981
974
982
return any (condition for condition in lazily_generate_conditions ())
975
983
Original file line number Diff line number Diff line change 38
38
ASUS_TINKER_BOARD_2 = "ASUS_TINKER_BOARD_2"
39
39
ASUS_TINKER_EDGE_R = "ASUS_TINKER_EDGE_R"
40
40
41
+ # Walnut Pi boards
42
+ WALNUT_PI_1B = "WALNUT_PI_1B"
43
+
41
44
# Clockwork Pi boards
42
45
CLOCKWORK_CPI3 = "CLOCKWORK_CPI3"
43
46
219
222
ASUS_TINKER_EDGE_R ,
220
223
)
221
224
225
+ # WalnutPi
226
+ _WALNUT_PI_IDS = (WALNUT_PI_1B ,)
227
+
222
228
# STM32MP1
223
229
_STM32MP1_IDS = (
224
230
STM32MP157C_DK2 ,
Original file line number Diff line number Diff line change 117
117
118
118
if detector .board .any_nxp_navq_board :
119
119
print ("NXP NavQ board detected." )
120
+
121
+ if detector .board .any_walnutpi :
122
+ print ("Walnut Pi detected." )
You can’t perform that action at this time.
0 commit comments