waf: use ctx.fatal for old board error
thanks to @OXINARF
This commit is contained in:
parent
7da303fe7f
commit
bac091262f
@ -279,7 +279,7 @@ def get_board(ctx):
|
|||||||
if not ctx.env.BOARD:
|
if not ctx.env.BOARD:
|
||||||
ctx.fatal('BOARD environment variable must be set before first call to get_board()')
|
ctx.fatal('BOARD environment variable must be set before first call to get_board()')
|
||||||
if ctx.env.BOARD in get_removed_boards():
|
if ctx.env.BOARD in get_removed_boards():
|
||||||
print('''
|
ctx.fatal('''
|
||||||
The board target %s has been removed from ArduPilot with the removal of NuttX support and HAL_PX4.
|
The board target %s has been removed from ArduPilot with the removal of NuttX support and HAL_PX4.
|
||||||
|
|
||||||
Please use a replacement build as follows:
|
Please use a replacement build as follows:
|
||||||
@ -289,7 +289,6 @@ Please use a replacement build as follows:
|
|||||||
px4-v4 Use Pixracer build
|
px4-v4 Use Pixracer build
|
||||||
px4-v4pro Use DrotekP3Pro build
|
px4-v4pro Use DrotekP3Pro build
|
||||||
''' % ctx.env.BOARD)
|
''' % ctx.env.BOARD)
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
_board = _board_classes[ctx.env.BOARD]()
|
_board = _board_classes[ctx.env.BOARD]()
|
||||||
return _board
|
return _board
|
||||||
|
Loading…
Reference in New Issue
Block a user