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:
Francisco Ferreira 2018-09-02 01:05:59 +01:00 committed by Andrew Tridgell
parent 1e036e4d4e
commit 9bdbd37d98

View File

@ -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):