Skip to content

Commit

Permalink
changes to scons files
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Apr 8, 2020
1 parent 6318e6b commit 795d90c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
10 changes: 6 additions & 4 deletions selfdrive/camerad/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ Import('env', 'arch', 'messaging', 'is_tbp', 'common', 'gpucommon', 'visionipc',
libs = ['m', 'pthread', common, 'jpeg', 'json', cereal, 'OpenCL', messaging, 'czmq', 'zmq', 'capnp', 'kj', 'capnp_c', visionipc, gpucommon]

if is_tbp:
arch = "aarch64_TBP"
if arch == "aarch64":
larch = "aarch64_TBP"
else:
larch = arch
if larch == "aarch64":
libs += ['gsl', 'CB', 'adreno_utils', 'EGL', 'GLESv3', 'cutils', 'ui']
cameras = ['cameras/camera_qcom.c']
elif arch == "larch64":
elif larch == "larch64":
libs += []
cameras = ['cameras/camera_qcom2.c']
elif arch == "aarch64_TBP":
elif larch == "aarch64_TBP":
libs += ['opencv_core', 'opencv_highgui', 'opencv_video', 'opencv_imgproc', 'opencv_videoio']
cameras = ['cameras/camera_webcam.cc']
env = env.Clone()
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def get_running():
]

if not WEBCAM:
car_start_processes += [
car_started_processes += [
'proclogd',
]

Expand Down
8 changes: 5 additions & 3 deletions selfdrive/modeld/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ common_src = [
"transforms/loadyuv.c",
"transforms/transform.c"]
if is_tbp:
arch = "aarch64_TBP"
if arch == "aarch64":
larch = "aarch64_TBP"
else:
larch = arch
if larch == "aarch64":
libs += ['SNPE', 'gsl', 'CB', 'gnustl_shared']
elif arch == "aarch64_TBP":
elif larch == "aarch64_TBP":
libs += ['pthread']
# for tensorflow support
common_src = [
Expand Down
6 changes: 4 additions & 2 deletions selfdrive/ui/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ src = ['ui.cc', 'paint.cc', 'sidebar.cc', '#phonelibs/nanovg/nanovg.c']
libs = [common, 'zmq', 'czmq', 'capnp', 'capnp_c', 'm', cereal, messaging, gpucommon, visionipc]

if is_tbp:
arch = "aarch64_TBP"
if arch == "aarch64":
larch = "aarch64_TBP"
else:
larch = arch
if larch == "aarch64":
src += ['sound.cc', 'slplay.c']
libs += ['EGL', 'GLESv3', 'gnustl_shared', 'log', 'utils', 'gui', 'hardware', 'ui', 'CB', 'gsl', 'adreno_utils', 'OpenSLES', 'cutils', 'uuid', 'OpenCL']
linkflags = ['-Wl,-rpath=/system/lib64,-rpath=/system/comma/usr/lib']
Expand Down

0 comments on commit 795d90c

Please sign in to comment.