mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-24 21:13:53 +08:00
13 lines
753 B
Python
13 lines
753 B
Python
Import('env', 'common', 'cereal', 'messaging', 'cython_dependencies')
|
|
# 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')
|
|
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'])
|
|
|
|
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")
|