From 10ff67d71ed0cbd3011276312f2b37414aac02fb Mon Sep 17 00:00:00 2001 From: Francisco Ferreira Date: Sun, 2 Sep 2018 00:59:21 +0100 Subject: [PATCH] waf: fix method name Add underscore prefix so that method isn't identified as a waf command --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index d7144d6276..94480c935f 100644 --- a/wscript +++ b/wscript @@ -437,7 +437,7 @@ def _build_post_funs(bld): if bld.env.SUBMODULE_UPDATE: bld.git_submodule_post_fun() -def load_pre_build(bld): +def _load_pre_build(bld): '''allow for a pre_build() function in build modules''' brd = bld.get_board() if getattr(brd, 'pre_build', None): @@ -457,7 +457,7 @@ def build(bld): cxxflags=['-include', 'ap_config.h'], ) - load_pre_build(bld) + _load_pre_build(bld) if bld.get_board().with_uavcan: bld.env.AP_LIBRARIES_OBJECTS_KW['use'] += ['uavcan']