mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-18 21:03:52 +08:00
17 lines
838 B
Python
17 lines
838 B
Python
Import('env', 'envCython', 'common', 'cereal', 'messaging')
|
|
# 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')
|
|
|
|
env.Program('boardd', ['boardd.cc', 'panda.cc', 'pigeon.cc'], LIBS=['usb-1.0', common, cereal, messaging, 'pthread', 'zmq', 'capnp', 'kj'])
|
|
env.Library('libcan_list_to_can_capnp', ['can_list_to_can_capnp.cc'])
|
|
|
|
envCython.Program('boardd_api_impl.so', 'boardd_api_impl.pyx', LIBS=["can_list_to_can_capnp", 'capnp', 'kj'] + envCython["LIBS"])
|