File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 27
27
GENERIC_LINUX_PC = "GENERIC_LINUX_PC"
28
28
PYBOARD = "PYBOARD"
29
29
NODEMCU = "NODEMCU"
30
+ GIANT_BOARD = "GIANT_BOARD"
31
+
32
+ # Orange Pi boards
30
33
ORANGE_PI_PC = "ORANGE_PI_PC"
31
34
ORANGE_PI_R1 = "ORANGE_PI_R1"
32
35
ORANGE_PI_ZERO = "ORANGE_PI_ZERO"
33
- GIANT_BOARD = "GIANT_BOARD"
36
+ ORANGE_PI_ONE = "ORANGE_PI_ONE"
37
+ ORANGE_PI_LITE = "ORANGE_PI_LITE"
38
+ ORANGE_PI_PC_PLUS = "ORANGE_PI_PC_PLUS"
34
39
35
40
# NVIDIA Jetson boards
36
41
JETSON_TX1 = 'JETSON_TX1'
85
90
_ORANGE_PI_IDS = (
86
91
ORANGE_PI_PC ,
87
92
ORANGE_PI_R1 ,
88
- ORANGE_PI_ZERO
93
+ ORANGE_PI_ZERO ,
94
+ ORANGE_PI_ONE ,
95
+ ORANGE_PI_LITE ,
96
+ ORANGE_PI_LITE
89
97
)
90
98
91
99
_CORAL_IDS = (
@@ -440,6 +448,7 @@ def _beaglebone_id(self):
440
448
return None
441
449
# pylint: enable=no-self-use
442
450
451
+ # pylint: disable=too-many-return-statements
443
452
def _armbian_id (self ):
444
453
"""Check whether the current board is an OrangePi PC or OrangePI R1."""
445
454
board_value = self .detector .get_armbian_release_field ('BOARD' )
@@ -449,9 +458,17 @@ def _armbian_id(self):
449
458
return ORANGE_PI_R1
450
459
if board_value == "orangepizero" :
451
460
return ORANGE_PI_ZERO
461
+ if board_value == "orangepione" :
462
+ return ORANGE_PI_ONE
463
+ if board_value == "orangepilite" :
464
+ return ORANGE_PI_LITE
465
+ if board_value == "orangepipcplus" :
466
+ return ORANGE_PI_PC_PLUS
452
467
if board_value == "pinebook-a64" :
453
468
return PINEBOOK
469
+
454
470
return None
471
+ # pylint: enable=too-many-return-statements
455
472
456
473
def _sama5_id (self ):
457
474
"""Check what type sama5 board."""
You can’t perform that action at this time.
0 commit comments