mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
* spi handle
* put usb back
* handle eintr
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ba9a5107b
10 lines
598 B
Python
10 lines
598 B
Python
Import('env', 'envCython', 'common', 'cereal', 'messaging')
|
|
|
|
libs = ['usb-1.0', common, cereal, messaging, 'pthread', 'zmq', 'capnp', 'kj']
|
|
env.Program('boardd', ['main.cc', 'boardd.cc', 'panda.cc', 'panda_comms.cc', 'spi.cc'], LIBS=libs)
|
|
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"])
|
|
if GetOption('test'):
|
|
env.Program('tests/test_boardd_usbprotocol', ['tests/test_boardd_usbprotocol.cc', 'panda.cc', 'panda_comms.cc', 'spi.cc'], LIBS=libs)
|