waf: boards: set Board as an abstract board
Let's have a unified way to do that - no need for checking the board name anymore.
This commit is contained in:
parent
93156e4325
commit
1fe795f283
@ -11,8 +11,6 @@ _board_classes = {}
|
||||
class BoardMeta(type):
|
||||
def __init__(cls, name, bases, dct):
|
||||
super(BoardMeta, cls).__init__(name, bases, dct)
|
||||
if name == 'Board':
|
||||
return
|
||||
|
||||
if 'abstract' not in cls.__dict__:
|
||||
cls.abstract = False
|
||||
@ -25,6 +23,8 @@ class BoardMeta(type):
|
||||
_board_classes[board_name] = cls
|
||||
|
||||
class Board:
|
||||
abstract = True
|
||||
|
||||
def configure(self, cfg):
|
||||
env = waflib.ConfigSet.ConfigSet()
|
||||
self.configure_env(cfg, env)
|
||||
|
Loading…
Reference in New Issue
Block a user