mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
* use kaitai to generate parsers * add scons flag to generate parsers * add outer layer ephemeris parsing * create ephemeris packet at the right time * parse subframe 1 and 2 * add more fields * add generated files to release * fix signs * no cast * add unordered map include * add exception handling * small cleanup * parse iono data * cleanup
13 lines
541 B
Python
13 lines
541 B
Python
Import('env', 'common', 'cereal', 'messaging')
|
|
|
|
loc_libs = [cereal, messaging, 'zmq', common, 'capnp', 'kj', 'kaitai', 'pthread']
|
|
|
|
|
|
if GetOption('kaitai'):
|
|
generated = Dir('generated').srcnode().abspath
|
|
cmd = f"kaitai-struct-compiler --target cpp_stl --outdir {generated} $SOURCES"
|
|
env.Command(['generated/ubx.cpp', 'generated/ubx.h'], 'ubx.ksy', cmd)
|
|
env.Command(['generated/gps.cpp', 'generated/gps.h'], 'gps.ksy', cmd)
|
|
|
|
env.Program("ubloxd", ["ubloxd.cc", "ublox_msg.cc", "generated/ubx.cpp", "generated/gps.cpp"], LIBS=loc_libs)
|