mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 17:03:56 +08:00
* pigeon abstraction layer
* Fix string literals
* more generic pigeon class
* add TTYpigon
* nicer tty error handling
* close tty fd on pigeon delete
* pigeon receive return std::string
* use sizeof
* max receive size to prevent infinite loop
* remove namespace
* add unistd include for usleep
* fix is pigeon
* Handle tty error in opening
* fix printing binary strings with dump.py
* fix pigeon build on macos
* Handle errors seperately
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 502cc665e0
45 lines
931 B
Python
45 lines
931 B
Python
Import('env', 'arch', 'SHARED', 'QCOM_REPLAY')
|
|
|
|
if SHARED:
|
|
fxn = env.SharedLibrary
|
|
else:
|
|
fxn = env.Library
|
|
|
|
_common = fxn('common', ['params.cc', 'swaglog.cc', 'util.c', 'cqueue.c', 'gpio.cc'], LIBS="json11")
|
|
_visionipc = fxn('visionipc', ['visionipc.c', 'ipc.c'])
|
|
|
|
files = [
|
|
'buffering.c',
|
|
'clutil.c',
|
|
'efd.c',
|
|
'glutil.c',
|
|
'visionimg.cc',
|
|
]
|
|
|
|
if arch == "aarch64":
|
|
defines = {}
|
|
files += [
|
|
'framebuffer.cc',
|
|
'touch.c',
|
|
]
|
|
if QCOM_REPLAY:
|
|
files += ['visionbuf_cl.c']
|
|
else:
|
|
files += ['visionbuf_ion.c']
|
|
_gpu_libs = ['gui', 'adreno_utils']
|
|
elif arch == "larch64":
|
|
defines = {"CLU_NO_CACHE": None}
|
|
files += [
|
|
'visionbuf_ion.c',
|
|
]
|
|
_gpu_libs = ['GL']
|
|
else:
|
|
defines = {"CLU_NO_CACHE": None}
|
|
files += [
|
|
'visionbuf_cl.c',
|
|
]
|
|
_gpu_libs = ["GL"]
|
|
|
|
_gpucommon = fxn('gpucommon', files, CPPDEFINES=defines, LIBS=_gpu_libs)
|
|
Export('_common', '_visionipc', '_gpucommon', '_gpu_libs')
|