Tools: waf: use ctx rather than build for fatal errors

This commit is contained in:
Peter Barker 2018-11-28 21:06:20 +11:00 committed by Andrew Tridgell
parent c6e70c0454
commit 8949cdd87a

View File

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