|
|
|
@ -340,7 +340,13 @@ class Board:
@@ -340,7 +340,13 @@ class Board:
|
|
|
|
|
for f in os.listdir('libraries/AP_OSD/fonts'): |
|
|
|
|
if fnmatch.fnmatch(f, "font*bin"): |
|
|
|
|
env.ROMFS_FILES += [(f,'libraries/AP_OSD/fonts/'+f)] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if cfg.options.ekf_double: |
|
|
|
|
env.CXXFLAGS += ['-DHAL_EKF_DOUBLE=1'] |
|
|
|
|
|
|
|
|
|
if cfg.options.ekf_single: |
|
|
|
|
env.CXXFLAGS += ['-DHAL_EKF_DOUBLE=0'] |
|
|
|
|
|
|
|
|
|
def pre_build(self, bld): |
|
|
|
|
'''pre-build hook that gets called before dynamic sources''' |
|
|
|
|
if bld.env.ROMFS_FILES: |
|
|
|
|