mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
waf: boards: use existing abstract class definition
Remove special case for removing ChibiOS base board class and use the pre-existing way Make board name list order be case-insensitive Also fix some space in blank lines
This commit is contained in:
parent
1e036e4d4e
commit
9bdbd37d98
@ -260,13 +260,8 @@ def add_dynamic_boards():
|
|||||||
|
|
||||||
def get_boards_names():
|
def get_boards_names():
|
||||||
add_dynamic_boards()
|
add_dynamic_boards()
|
||||||
ret = sorted(list(_board_classes.keys()))
|
|
||||||
# some board types should not be selected
|
return sorted(list(_board_classes.keys()), key=str.lower)
|
||||||
hidden = ['chibios']
|
|
||||||
for h in hidden:
|
|
||||||
if h in ret:
|
|
||||||
ret.remove(h)
|
|
||||||
return ret
|
|
||||||
|
|
||||||
@conf
|
@conf
|
||||||
def get_board(ctx):
|
def get_board(ctx):
|
||||||
@ -335,6 +330,7 @@ class sitl(Board):
|
|||||||
]
|
]
|
||||||
|
|
||||||
class chibios(Board):
|
class chibios(Board):
|
||||||
|
abstract = True
|
||||||
toolchain = 'arm-none-eabi'
|
toolchain = 'arm-none-eabi'
|
||||||
|
|
||||||
def configure_env(self, cfg, env):
|
def configure_env(self, cfg, env):
|
||||||
|
Loading…
Reference in New Issue
Block a user