@@ -161,6 +161,8 @@ def id(self) -> Optional[str]:
161
161
board_id = boards .GENERIC_LINUX_PC
162
162
elif chip_id == chips .TDA4VM :
163
163
board_id = self ._tisk_id ()
164
+ elif chip_id == chips .D1_RISCV :
165
+ board_id = self ._armbian_id ()
164
166
self ._board_id = board_id
165
167
return board_id
166
168
@@ -332,6 +334,8 @@ def _armbian_id(self) -> Optional[str]:
332
334
board = boards .NANOPI_DUO2
333
335
elif board_value == "nanopineo" :
334
336
board = boards .NANOPI_NEO
337
+ elif board_value == "nezha" :
338
+ board = boards .LICHEE_RV
335
339
336
340
return board
337
341
@@ -662,6 +666,11 @@ def any_tisk_board(self) -> bool:
662
666
"""Check whether the current board is any defined TI SK Board."""
663
667
return self .id in [v [0 ] for v in boards ._TI_SK_BOARD_IDS ]
664
668
669
+ @property
670
+ def any_lichee_riscv_board (self ) -> bool :
671
+ """Check whether the current board is any defined Lichee RISC-V."""
672
+ return self .id in boards ._LICHEE_RISCV_IDS
673
+
665
674
@property
666
675
def any_embedded_linux (self ) -> bool :
667
676
"""Check whether the current board is any embedded Linux device."""
@@ -691,6 +700,7 @@ def any_embedded_linux(self) -> bool:
691
700
self .any_bananapi ,
692
701
self .any_maaxboard ,
693
702
self .any_tisk_board ,
703
+ self .any_lichee_riscv_board ,
694
704
]
695
705
)
696
706
0 commit comments