Files
dragonpilot/selfdrive/boardd/SConscript
T
Rick Lan 27e12ccad7 dragonpilot 0.7.8.0
========================
* Based on latest openpilot 0.7.8 devel.
* Added "Reset DP Settings" button. (Thanks to @LOVEChen)
* Alert messages changed to concept UI alike design.
* Added ability to execute reset_update.sh when press "Exit" button once manager returned errors.
2020-08-31 12:42:57 +10:00

13 lines
740 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'], 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")