mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 22:52:06 +08:00
03b2a6a137
* add initial lsm6ds3 setup * accel works * ignore lsm6ds3 in locationd * add gyro * add temp Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: e51da619c15dea3ac6cc77f4f9a387923e2a3ea6
21 lines
828 B
Python
21 lines
828 B
Python
Import('env', 'arch', 'common', 'cereal', 'messaging')
|
|
if arch == "aarch64":
|
|
env.Program('_sensord', 'sensors_qcom.cc', LIBS=['hardware', common, cereal, messaging, 'capnp', 'zmq', 'kj'])
|
|
lenv = env.Clone()
|
|
lenv['LIBPATH'] += ['/system/vendor/lib64']
|
|
lenv.Program('_gpsd', ['gpsd.cc'], LIBS=['hardware', common, 'diag', 'time_genoff', cereal, messaging, 'capnp', 'zmq', 'kj'])
|
|
else:
|
|
sensors = [
|
|
'sensors/file_sensor.cc',
|
|
'sensors/i2c_sensor.cc',
|
|
'sensors/light_sensor.cc',
|
|
'sensors/bmx055_accel.cc',
|
|
'sensors/bmx055_gyro.cc',
|
|
'sensors/bmx055_magn.cc',
|
|
'sensors/bmx055_temp.cc',
|
|
'sensors/lsm6ds3_accel.cc',
|
|
'sensors/lsm6ds3_gyro.cc',
|
|
'sensors/lsm6ds3_temp.cc',
|
|
]
|
|
env.Program('_sensord', ['sensors_qcom2.cc'] + sensors, LIBS=[common, cereal, messaging, 'capnp', 'zmq', 'kj'])
|