2020-08-13 00:37:05 +00:00
|
|
|
Import('env', 'common', 'cereal', 'messaging', 'cython_dependencies')
|
2020-10-30 11:38:41 +10:00
|
|
|
# dp - Add read dp_disable_relay value
|
|
|
|
|
if FindFile('dp_disable_relay', '/data/params/d') != None:
|
|
|
|
|
with open('/data/params/d/dp_disable_relay') as f:
|
|
|
|
|
if (int(f.read())) == 1:
|
|
|
|
|
env.Append(CCFLAGS='-DDisableRelay')
|
2020-10-02 01:45:44 +00:00
|
|
|
env.Program('boardd', ['boardd.cc', 'panda.cc', 'pigeon.cc'], LIBS=['usb-1.0', common, cereal, messaging, 'pthread', 'zmq', 'capnp', 'kj'])
|
2019-12-13 13:03:08 -08:00
|
|
|
env.Library('libcan_list_to_can_capnp', ['can_list_to_can_capnp.cc'])
|
|
|
|
|
|
2020-08-13 00:37:05 +00:00
|
|
|
env.Command(['boardd_api_impl.so', 'boardd_api_impl.cpp'],
|
|
|
|
|
cython_dependencies + ['libcan_list_to_can_capnp.a', 'boardd_api_impl.pyx', 'boardd_setup.py'],
|
|
|
|
|
"cd selfdrive/boardd && python3 boardd_setup.py build_ext --inplace")
|