waf: fix method name

Add underscore prefix so that method isn't identified as a waf command
This commit is contained in:
Francisco Ferreira 2018-09-02 00:59:21 +01:00 committed by Andrew Tridgell
parent e56f12b68e
commit 10ff67d71e
1 changed files with 2 additions and 2 deletions

View File

@ -437,7 +437,7 @@ def _build_post_funs(bld):
if bld.env.SUBMODULE_UPDATE: if bld.env.SUBMODULE_UPDATE:
bld.git_submodule_post_fun() bld.git_submodule_post_fun()
def load_pre_build(bld): def _load_pre_build(bld):
'''allow for a pre_build() function in build modules''' '''allow for a pre_build() function in build modules'''
brd = bld.get_board() brd = bld.get_board()
if getattr(brd, 'pre_build', None): if getattr(brd, 'pre_build', None):
@ -457,7 +457,7 @@ def build(bld):
cxxflags=['-include', 'ap_config.h'], cxxflags=['-include', 'ap_config.h'],
) )
load_pre_build(bld) _load_pre_build(bld)
if bld.get_board().with_uavcan: if bld.get_board().with_uavcan:
bld.env.AP_LIBRARIES_OBJECTS_KW['use'] += ['uavcan'] bld.env.AP_LIBRARIES_OBJECTS_KW['use'] += ['uavcan']