mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 13:33:59 +08:00
* capnparm * building in progress * scons build works * that script fixes opencl * start new camera code * includes and more camera scripts * control c works now * no device control yet * phy too * just one camera for now * fix capnparm * hmm, the inits are needed * more cameras * link stop start * doesn't work yet * fix ion on qcom2 * start poll ish * 4 pictures and done * no jpeg * it works to picture * destroy sync obj * both work for now * defined QCOM2 * fix fd leak * run modeld * 10 bit mode * real frame stride * needs digital gain * dnew * no color correcting on new * that snpe doesn't work * qcom2 gate * cleanups * oops, fix aarch64 detector * update cereal * modeld works with SNPE * fix driver monitoring model Co-authored-by: Tici <robbe@comma.ai>
43 lines
835 B
Python
43 lines
835 B
Python
Import('env', 'arch', 'SHARED')
|
|
|
|
if SHARED:
|
|
fxn = env.SharedLibrary
|
|
else:
|
|
fxn = env.Library
|
|
|
|
_common = fxn('common', ['params.cc', 'swaglog.c', 'util.c', 'cqueue.c'], LIBS="json")
|
|
_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',
|
|
'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')
|
|
|