Files
dragonpilot/selfdrive/boardd/SConscript

17 lines
838 B
Python
Raw Normal View History

2020-11-24 21:53:25 +00:00
Import('env', 'envCython', 'common', 'cereal', 'messaging')
2021-07-02 12:49:43 +08:00
# dp - Add read dp_toyota_disable_relay value
if FindFile('dp_toyota_disable_relay', '/data/params/d') != None:
with open('/data/params/d/dp_toyota_disable_relay') as f:
if (int(f.read().strip())) == 1:
env.Append(CCFLAGS='-DDisableRelay')
if FindFile('dp_panda_no_gps', '/data/params/d') != None:
with open('/data/params/d/dp_panda_no_gps') as f:
if (int(f.read().strip())) == 1:
env.Append(CCFLAGS='-DNoGPS')
2019-12-13 13:03:08 -08:00
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-11-24 21:53:25 +00:00
envCython.Program('boardd_api_impl.so', 'boardd_api_impl.pyx', LIBS=["can_list_to_can_capnp", 'capnp', 'kj'] + envCython["LIBS"])