Files
dragonpilot/selfdrive/boardd/SConscript

16 lines
598 B
Python
Raw Normal View History

2019-12-13 13:03:08 -08:00
Import('env', 'common', 'messaging')
2020-01-08 15:04:49 +10:00
# dragonpilot - Add read DragonBTG value
if FindFile('DragonBTG', '/data/params/d') != None:
with open('/data/params/d/DragonBTG') as f:
if (int(f.read())) == 1:
env.Append(CCFLAGS='-DDragonBTG')
2019-12-13 13:03:08 -08:00
env.Program('boardd.cc', LIBS=['usb-1.0', common, messaging, 'pthread', 'zmq', 'capnp', 'kj'])
env.Library('libcan_list_to_can_capnp', ['can_list_to_can_capnp.cc'])
env.Command(['boardd_api_impl.so'],
['libcan_list_to_can_capnp.a', 'boardd_api_impl.pyx', 'boardd_setup.py'],
"cd selfdrive/boardd && python3 boardd_setup.py build_ext --inplace")