diff options
Diffstat (limited to 'SConscript')
-rw-r--r-- | SConscript | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/SConscript b/SConscript index 0b7729cced..66dfff4511 100644 --- a/SConscript +++ b/SConscript @@ -31,6 +31,14 @@ Import('env') Import('vars') Import('install_lib') +def build_bootcode_objs(sources): + + arm_compute_env.Append(ASFLAGS = "-I bootcode/") + obj = arm_compute_env.Object(sources) + obj = install_lib(obj) + Default(obj) + return obj + def build_library(name, sources, static=False, libs=[]): if static: obj = arm_compute_env.StaticLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs) @@ -240,6 +248,12 @@ if env['gles_compute']: graph_files += Glob('src/graph/backends/GLES/*.cpp') +bootcode_o = [] +if env['os'] == 'bare_metal': + bootcode_files = Glob('bootcode/*.s') + bootcode_o = build_bootcode_objs(bootcode_files) +Export('bootcode_o') + arm_compute_core_a = build_library('arm_compute_core-static', core_files, static=True) Export('arm_compute_core_a') |