mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 21:14:01 +08:00
modeld: remove support for small model (#23803)
* modeld: remove support for small model
* use extra
old-commit-hash: 8a19d9892e
This commit is contained in:
@@ -31,9 +31,6 @@ thneed_src = [
|
||||
|
||||
use_thneed = not GetOption('no_thneed')
|
||||
|
||||
use_extra = True # arch == "larch64"
|
||||
lenv['CXXFLAGS'].append('-DUSE_EXTRA=true' if use_extra else '-DUSE_EXTRA=false')
|
||||
|
||||
if arch == "aarch64" or arch == "larch64":
|
||||
libs += ['gsl', 'CB']
|
||||
libs += ['gnustl_shared'] if arch == "aarch64" else ['pthread', 'dl']
|
||||
@@ -68,7 +65,7 @@ common_model = lenv.Object(common_src)
|
||||
|
||||
# build thneed model
|
||||
if use_thneed and arch in ("aarch64", "larch64"):
|
||||
fn = "../../models/big_supercombo" if use_extra else "../../models/supercombo"
|
||||
fn = File("#models/supercombo").abspath
|
||||
compiler = lenv.Program('thneed/compile', ["thneed/compile.cc"]+common_model, LIBS=libs)
|
||||
cmd = f"cd {Dir('.').abspath} && {compiler[0].abspath} {fn}.dlc {fn}.thneed --binary"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user