diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index fc3176fdc2..fe01d35af4 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -57,6 +57,10 @@ class Board: # make easy to override them. Convert back to list before consumption. env.DEFINES = {} + env.prepend_value('INCLUDES', [ + cfg.srcnode.find_dir('libraries/AP_Common/missing').abspath() + ]) + env.CFLAGS += [ '-ffunction-sections', '-fdata-sections', @@ -333,9 +337,6 @@ class px4(Board): CONFIG_HAL_BOARD = 'HAL_BOARD_PX4', HAVE_STD_NULLPTR_T = 0, ) - env.prepend_value('INCLUDES', [ - cfg.srcnode.find_dir('libraries/AP_Common/missing').abspath() - ]) env.CXXFLAGS += [ '-Wlogical-op', '-Wframe-larger-than=1300',