@@ -249,30 +249,34 @@ def _armbian_id(self):
249
249
250
250
if board_value == "orangepipc" :
251
251
board = boards .ORANGE_PI_PC
252
- if board_value == "orangepi-r1" :
252
+ elif board_value == "orangepi-r1" :
253
253
board = boards .ORANGE_PI_R1
254
- if board_value == "orangepizero" :
254
+ elif board_value == "orangepizero" :
255
255
board = boards .ORANGE_PI_ZERO
256
- if board_value == "orangepione" :
256
+ elif board_value == "orangepione" :
257
257
board = boards .ORANGE_PI_ONE
258
- if board_value == "orangepilite" :
258
+ elif board_value == "orangepilite" :
259
259
board = boards .ORANGE_PI_LITE
260
- if board_value == "orangepiplus2e" :
260
+ elif board_value == "orangepiplus2e" :
261
261
board = boards .ORANGE_PI_PLUS_2E
262
- if board_value == "orangepipcplus" :
262
+ elif board_value == "orangepipcplus" :
263
263
board = boards .ORANGE_PI_PC_PLUS
264
- if board_value == "pinebook-a64" :
264
+ elif board_value == "pinebook-a64" :
265
265
board = boards .PINEBOOK
266
- if board_value == "pineH64" :
266
+ elif board_value == "pineH64" :
267
267
board = boards .PINEH64
268
- if board_value == "orangepi2" :
268
+ elif board_value == "orangepi2" :
269
269
board = boards .ORANGE_PI_2
270
- if board_value == "bananapim2zero" :
270
+ elif board_value == "bananapim2zero" :
271
271
board = boards .BANANA_PI_M2_ZERO
272
- if board_value == "orangepizeroplus2-h5" :
272
+ elif board_value == "orangepizeroplus2-h5" :
273
273
board = boards .ORANGE_PI_ZERO_PLUS_2H5
274
- if board_value == "orangepizeroplus" :
274
+ elif board_value == "orangepizeroplus" :
275
275
board = boards .ORANGE_PI_ZERO_PLUS
276
+ elif board_value == "nanopiair" :
277
+ board = boards .NANOPI_NEO_AIR
278
+ elif board_value == "nanopiduo2" :
279
+ board = boards .NANOPI_DUO2
276
280
277
281
return board
278
282
@@ -398,6 +402,11 @@ def _asus_tinker_board_id(self):
398
402
board = boards ._ASUS_TINKER_BOARD_IDS
399
403
return board
400
404
405
+ @property
406
+ def any_nanopi (self ):
407
+ """Check whether the current board is any defined Nano Pi."""
408
+ return self .id in boards ._NANOPI_IDS
409
+
401
410
@property
402
411
def any_96boards (self ):
403
412
"""Check whether the current board is any 96boards board."""
@@ -506,6 +515,7 @@ def any_embedded_linux(self):
506
515
self .any_raspberry_pi ,
507
516
self .any_beaglebone ,
508
517
self .any_orange_pi ,
518
+ self .any_nanopi ,
509
519
self .any_giant_board ,
510
520
self .any_jetson_board ,
511
521
self .any_coral_board ,
0 commit comments