From 7002527ad058630edad01d1a48cbf8581908973f Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 12 Mar 2020 15:46:38 -0700 Subject: [PATCH] Don't build all the kalman filters on the phone old-commit-hash: 6be97f6396a89199c44882ed96bd2eed322a77d1 --- selfdrive/locationd/kalman/SConscript | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/selfdrive/locationd/kalman/SConscript b/selfdrive/locationd/kalman/SConscript index effa6a6b71..dcacb97c37 100644 --- a/selfdrive/locationd/kalman/SConscript +++ b/selfdrive/locationd/kalman/SConscript @@ -1,20 +1,25 @@ -Import('env') +Import('env', 'arch') templates = Glob('templates/*') sympy_helpers = "helpers/sympy_helpers.py" ekf_sym = "helpers/ekf_sym.py" to_build = { - 'pos_computer_4': 'helpers/lst_sq_computer.py', - 'pos_computer_5': 'helpers/lst_sq_computer.py', - 'feature_handler_5': 'helpers/feature_handler.py', 'car': 'models/car_kf.py', - 'gnss': 'models/gnss_kf.py', - 'loc_4': 'models/loc_kf.py', 'live': 'models/live_kf.py', - 'lane': '#xx/pipeline/lib/ekf/lane_kf.py', } + +if arch != "aarch64": + to_build.update({ + 'lane': '#xx/pipeline/lib/ekf/lane_kf.py', + 'pos_computer_4': 'helpers/lst_sq_computer.py', + 'pos_computer_5': 'helpers/lst_sq_computer.py', + 'feature_handler_5': 'helpers/feature_handler.py', + 'loc_4': 'models/loc_kf.py', + 'gnss': 'models/gnss_kf.py', + }) + found = {} for target, command in to_build.items():