From 69d3066d824fcdd20c6e641dd0918e85f4022fce Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 12 May 2026 09:59:46 -0700 Subject: [PATCH] minimal build by default on device (#38023) * minimal build by default on device * and --- SConstruct | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 5ac0987a8..550e5f0ee 100644 --- a/SConstruct +++ b/SConstruct @@ -10,6 +10,8 @@ import numpy as np import SCons.Errors from SCons.Defaults import _stripixes +TICI = os.path.isfile('/TICI') + SCons.Warnings.warningAsException(True) Decider('MD5-timestamp') @@ -22,14 +24,14 @@ release = not os.path.exists(File('#.gitattributes').abspath) # file absent on r AddOption('--minimal', action='store_false', dest='extras', - default=not release, + default=(not TICI and not release), help='the minimum build to run openpilot. no tests, tools, etc.') # Detect platform arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip() if platform.system() == "Darwin": arch = "Darwin" -elif arch == "aarch64" and os.path.isfile('/TICI'): +elif arch == "aarch64" and TICI: arch = "larch64" assert arch in [ "larch64", # linux tici arm64