mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: waf: use ctx rather than build for fatal errors
This commit is contained in:
parent
c6e70c0454
commit
8949cdd87a
@ -249,7 +249,7 @@ class Board:
|
|||||||
ctx.env.ROMFS_FILES[i] = (name,filename);
|
ctx.env.ROMFS_FILES[i] = (name,filename);
|
||||||
header = ctx.bldnode.make_node('ap_romfs_embedded.h').abspath()
|
header = ctx.bldnode.make_node('ap_romfs_embedded.h').abspath()
|
||||||
if not embed.create_embedded_h(header, ctx.env.ROMFS_FILES):
|
if not embed.create_embedded_h(header, ctx.env.ROMFS_FILES):
|
||||||
bld.fatal("Failed to created ap_romfs_embedded.h")
|
ctx.fatal("Failed to created ap_romfs_embedded.h")
|
||||||
|
|
||||||
Board = BoardMeta('Board', Board.__bases__, dict(Board.__dict__))
|
Board = BoardMeta('Board', Board.__bases__, dict(Board.__dict__))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user