waf: support no-gcs and DAL builds

This commit is contained in:
Andrew Tridgell 2020-11-06 10:36:51 +11:00
parent 603146c5ca
commit 0c1d665818
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,7 @@ COMMON_VEHICLE_DEPENDENT_LIBRARIES = [
'AP_InertialSensor',
'AP_Math',
'AP_Mission',
'AP_DAL',
'AP_NavEKF',
'AP_NavEKF2',
'AP_NavEKF3',

View File

@ -64,6 +64,10 @@ class Board:
else:
cfg.options.disable_scripting = True
# allow GCS disable for AP_DAL example
if cfg.options.no_gcs:
env.CXXFLAGS += ['-DHAL_NO_GCS=1']
d = env.get_merged_dict()
# Always prepend so that arguments passed in the command line get
# the priority.