|
|
@ -101,23 +101,17 @@ if GetOption('extras') and arch != "Darwin": |
|
|
|
senv['LINKFLAGS'].append('-Wl,-strip-debug') |
|
|
|
senv['LINKFLAGS'].append('-Wl,-strip-debug') |
|
|
|
|
|
|
|
|
|
|
|
release = "release3" |
|
|
|
release = "release3" |
|
|
|
dashcam = "dashcam3" |
|
|
|
|
|
|
|
installers = [ |
|
|
|
installers = [ |
|
|
|
("openpilot", release), |
|
|
|
("openpilot", release), |
|
|
|
("openpilot_test", f"{release}-staging"), |
|
|
|
("openpilot_test", f"{release}-staging"), |
|
|
|
("openpilot_nightly", "nightly"), |
|
|
|
("openpilot_nightly", "nightly"), |
|
|
|
("openpilot_internal", "master"), |
|
|
|
("openpilot_internal", "master"), |
|
|
|
("dashcam", dashcam), |
|
|
|
|
|
|
|
("dashcam_test", f"{dashcam}-staging"), |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
cont = {} |
|
|
|
cont = senv.Command(f"installer/continue_openpilot.o", f"installer/continue_openpilot.sh", |
|
|
|
for brand in ("openpilot", "dashcam"): |
|
|
|
"ld -r -b binary -o $TARGET $SOURCE") |
|
|
|
cont[brand] = senv.Command(f"installer/continue_{brand}.o", f"installer/continue_{brand}.sh", |
|
|
|
|
|
|
|
"ld -r -b binary -o $TARGET $SOURCE") |
|
|
|
|
|
|
|
for name, branch in installers: |
|
|
|
for name, branch in installers: |
|
|
|
brand = "dashcam" if "dashcam" in branch else "openpilot" |
|
|
|
d = {'BRANCH': f"'\"{branch}\"'"} |
|
|
|
d = {'BRANCH': f"'\"{branch}\"'", 'BRAND': f"'\"{brand}\"'"} |
|
|
|
|
|
|
|
if "internal" in name: |
|
|
|
if "internal" in name: |
|
|
|
d['INTERNAL'] = "1" |
|
|
|
d['INTERNAL'] = "1" |
|
|
|
|
|
|
|
|
|
|
@ -126,7 +120,7 @@ if GetOption('extras') and arch != "Darwin": |
|
|
|
r.raise_for_status() |
|
|
|
r.raise_for_status() |
|
|
|
d['SSH_KEYS'] = f'\\"{r.text.strip()}\\"' |
|
|
|
d['SSH_KEYS'] = f'\\"{r.text.strip()}\\"' |
|
|
|
obj = senv.Object(f"installer/installers/installer_{name}.o", ["installer/installer.cc"], CPPDEFINES=d) |
|
|
|
obj = senv.Object(f"installer/installers/installer_{name}.o", ["installer/installer.cc"], CPPDEFINES=d) |
|
|
|
f = senv.Program(f"installer/installers/installer_{name}", [obj, cont[brand]], LIBS=qt_libs) |
|
|
|
f = senv.Program(f"installer/installers/installer_{name}", [obj, cont], LIBS=qt_libs) |
|
|
|
# keep installers small |
|
|
|
# keep installers small |
|
|
|
assert f[0].get_size() < 350*1e3 |
|
|
|
assert f[0].get_size() < 350*1e3 |
|
|
|
|
|
|
|
|
|
|
|